Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug OpenCL on Nvidia GPUs?

Is there any way to debug OpenCL kernels on an Nvidia GPU, i.e. set breakpoints and inspect variables? My understanding is that Nvidia's tool does not allow OpenCL debugging, and AMD's and Intel's only allow it on their own devices.

like image 449
1'' Avatar asked Aug 16 '13 03:08

1''


1 Answers

gDEBugger might help you somewhat (never used it though), but other than that there isn't any tool that I know of that can set breakpoints or inspect variables inside a kernel. Perhaps try to save intermediate outputs from your kernel if it is a long kernel. Sorry I can't give you a magic solution, debugging OpenCL is just hard.

like image 99
chippies Avatar answered Oct 21 '22 04:10

chippies