Jamy-L/Handheld-Multi-Frame-Super-Resolution

How to debug @cuda.jit functions?

liuhuaer opened this issue · 1 comments

I use vscode remote ubuntu server to debug, but can't debug @cuda.jit function.

@cuda.jit functions are executed on GPU and can therefore be tricky to debug, especially because CUDA errors are not very explicit. Numba has a built-in debugging feature but I have never really tried it.
Bear in mind that during runtime, jitted functions are parsed by an interpreter, then converted to CUDA code which is then executed, which is why regular python debuggers may struggle.