AnsweredAssumed Answered

Code XL : How to debug Kernel on CPU?

Question asked by ash on May 21, 2013
Latest reply on Jun 7, 2013 by ash

Hi everybody,

I've just started to learn OpenCL and wanted to use CodeXL to debug more easily.

My system :

- NVIDIA GPU GeForce GTX 650

- Intel(R) Xeon(R) CPU E5430 2.66Hz

- Linux RedHat 6

When I start CodeXL it requires an AMD GPU. I'd like to know why I can't debug the kernel even if it's launched on CPU?

Is there anyway with my setup to debug with CodeXL .

 

Otherwise I tried with GDB and I can enter the kernel but I have to pass -O0 in addition to -g to the program's compiler options.

And it's not really easy to debug like that since I don't know how to isolate some thread and watch values.

 

I hope you'll be able to help.

 

Best regards,

ash

Outcomes