7

I would like to know wether you know of any way to step-by-step debug OpenCL Kernel using Windows (my IDE is Visual Studio) and running OpenCL Kernels on a NVidia GPU.

What i found so far is:

  • with NVidias NSight you can only profile OpenCL Applications, but not debug them
  • the current version of the gDEBugger from AMD only supports ATI/AMD GPUs
  • the old version of gDEBugger supports NVidia GPUs but work is discontinued in Dec '10
  • the GDB debugger seems to support it, but is only available under Linux
  • the Intel OpenCL SDK brings a Debugger, but it only works while running the code on the CPU, not while running it on the GPU

Is there really a gap for this configuration (Windows + NVidia GPU + OpenCL)?

Bart
  • 19,692
  • 7
  • 68
  • 77
Michael
  • 848
  • 8
  • 13
  • 3
    Yes this is a serious limitation, you can debug CUDA code using NSight using your onboard graphics as your primary display, but no such luck for OpenCL – kiranputtur Aug 22 '12 at 10:53
  • @ocluser Are you sure you can't use Nsight for OpenCL ? When I want to profile Cuda, I can choose OpenCL as well. I'm not doing OpenCL right now so I can't test it. But I guess you can do step-by-step debugging if you have 2 gpu, it's just a guess... no proof. – Seltymar Oct 05 '12 at 04:25
  • @Seltymar [Here](http://developer.nvidia.com/content/nsight-visual-studio-edition-features) it says you can only trace Open-CL in the current version. Debugging seems to work only with Cuda kernels. – Michael Oct 05 '12 at 10:46

1 Answers1

3

There is currently no method of debugging into OpenCL kernels on nVidia hardware.

nSight will only debug CUDA kernels. It will profile ("trace") CUDA and OpenCL kernels. I have heard rumour that nVidia have an internal version of nSight that will debug OpenCL kernels but it has not been (and imho will is unlikely to be) released due to commercial reasons, i.e. pushing CUDA as the compute platform of choice.

gDEBugger no longer exists. It was bought a few years ago and became CodeXL. AMD will not support other vendors' hardware for obvious reasons.

user2746401
  • 3,157
  • 2
  • 21
  • 46