How to debug OpenCL on Nvidia GPUs?

Is there a way to debug OpenCL kernels on an Nvidia GPU, i.e. set breakpoints and check variables? I understand that the Nvidia tool does not allow debugging OpenCL, and AMD and Intel only allow on their devices.

+8
opencl gpu gpgpu amd-processor nvidia
source share
1 answer

gDEBugger can help you to some extent (but never used it), but other than that there is no tool I know about that can set breakpoints or check variables inside the kernel. Perhaps try to keep intermediate exits from your kernel if it is a long kernel. Sorry, I can’t give you the magic solution, debugging OpenCL is just hard.

+1
source share

All Articles