-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Is there a recommended workflow when trying to debug and profile @parallel_indices
functions?
Often, my functions reference several other functions (which typically act as function barriers). If I want to profile these nested functions, or even the parent function, I run into various problems due to the way the macro extracts out code.
For example, it would be great if I could use something like Cthulhu.jl
to recursively evaluate the @code_warntype
output (and check for dynamic dispatching etc.) but this currently isn't possible. More importantly, none of the current Julia debuggers can traverse into any of the kernels. In other words, I can't seem to find a way to inspect the current running state of the kernel (which is also important for checking for dynamic dispatch and specialization errors).
I could copy the body contents into a "custom" function that implements a manual loop over the indices... but this seems a little too brute force.