Debugging OpenCL on CPU

333 Views Asked by At

I'm trying to debug OpenCL kernels on CPU target, following this guide without success. The kernel builds, app runs, but the breakpoints are not hit. There is a statement "The Debugger requires setting the global ID of the work-item to debug before the debugging session starts.", but no information on where to set or how the global ID. Anybody has a working boilerplate project for this or suggestions? thanks!

1

There are 1 best solutions below

1
On

Try to debug with Oclgrind https://github.com/jrprice/Oclgrind https://github.com/jrprice/Oclgrind/wiki example: Oclgrind -i ./appl