Skip to content

Recommended procedure to debug code generation for FPGAs from its python interface #1054

Answered by tbennun
krishnakumarg1984 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @krishnakumarg1984, thank you for helping contribute to DaCe!

The code generator can be debugged in different ways. If the code generation process itself is failing, the Python debugger would be enough to try and understand what is going on. For compiler errors, like the one in #1036, there are multiple ways of approaching this.

First, the code generation process is relatively straightforward and is visualized in the following gif:

So if there is a particular hint in the error (array name, kernel) that can pinpoint which node / memlet might be problematic, it would be advisable to place a conditional breakpoint on the function that generates that kind of node, conditioned on the speci…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by krishnakumarg1984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants