struggling to find the source of problems in some kernels I write due to I don’t know of a julia CUDA debugger, I’ve found some for C.
I get:
CUDA error: unspecified launch failure (code 719, ERROR_LAUNCH_FAILED)
and that means I have to restart Julia, which makes debugging blind exceptionally slow
Yes, CUDA is very unfriendly wrt. invalid parameters and throwing its hands up in the air. Not much we can do about this, and there are no debuggers that make CUDA report errors in a better way. Sometimes running under cuda-memcheck
gives slightly better errors. Best suggestion is to modify the sources of CUDAdrv and surround the API call arguments (here cuLaunchKernel
) with @show
. Then see if they are valid, comparing against the CUDA documentation. If you run into this error with high-level functionality (i.e. CuArrays.jl) you can also file a bug, as this behavior is unexpected.