我在 Python 中使用 DaCe 框架。如何在创建时或创建后编辑 tasklet 的调试信息?

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?

我正在使用 DaCe 框架从其他代码片段创建 SDFG。因此,当我翻译代码时,我需要 tasklet 调试信息与原始代码相关,而不是 python 代码进行翻译。

这在 DaCe 中可行吗?如果可行,如何实现?

如果您使用 SDFG API 创建 Tasklet,您可以使用 add_tasklet 或其他 API 调用的 debuginfo 关键字参数来设置正确的 line/column资料。请参阅示例 in the Python DaCe frontend