You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the kernel will be hit and the debugger will state that the current line is the third line, reading @cuda.jit. It would be better if it identified the beginning of the kernel code as the current line, i.e. the one reading pass. This is because the line number is obtained from the function code object's co_firstlineno, which Python identifies as the line on which the decorator begins. inspect.getsourceline() contains some logic to get the first actual code line, but it's not available through a public API - we would need similar logic to get the first code line.
Note - this may already get resolved by #50 if the wrapper code generation is causing this problem.
The text was updated successfully, but these errors were encountered:
For a CUDA kernel such as:
when breaking on kernel launch such as with:
the kernel will be hit and the debugger will state that the current line is the third line, reading
@cuda.jit
. It would be better if it identified the beginning of the kernel code as the current line, i.e. the one readingpass
. This is because the line number is obtained from the function code object'sco_firstlineno
, which Python identifies as the line on which the decorator begins.inspect.getsourceline()
contains some logic to get the first actual code line, but it's not available through a public API - we would need similar logic to get the first code line.Note - this may already get resolved by #50 if the wrapper code generation is causing this problem.
The text was updated successfully, but these errors were encountered: