Search code examples
performanceportabilitydataflow

I am using the DaCe framework in Python. How can I edit the debug info of a tasklet, either at creation or after its creation?


I am using the DaCe framework to create SDFGs from other pieces of code. Therefore, when I am translating the code, I need the tasklet debug info to relate to the original code rather than the python code doing the translating.

Is that possible in DaCe, and if so, how?


Solution

  • If you are creating Tasklets using the SDFG API, you can use the debuginfo keyword argument of add_tasklet or the other API calls to set the right line/column information. See an example in the Python DaCe frontend.