Open houkensjtu opened 2 years ago
@houkensjtu It's indeed possible (and desired) in the future that we can configure compile options per taichi kernel (which requires a non-trivial amount of refactor).
Also some of the debug features are global instead of per kernel (e.g. vulkan printing) that it's not possible to configure per kernel. So those need to be separated before properly allowing a per-kernel compile config.
A (maybe) short-term thing we can do is adding kernel_name to the log so that you can filter and grep.
+1. This would be very helpful!
Concisely describe the proposed feature A debug option for individual kernels comes in handy when a user wants to focus on a certain section of his/her code. I expect this feature to be especially useful when people collaborate on a relatively large program. Currently, the
debug=True
option will turn all kernels into the debug mode:However, a user might want to turn on the debug flag for only one of the kernels to avoid dealing with unrelated error messages:
Please let me know if you have any comments on this request. Thank you!