OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Kernel debuuging to find an erroring work item

PCox
Beginner
137 Views

Hi.

  During visual studio code builder debugging, I have a clEnqueueNDRangeKernel failing for a certain kernel, with a bad memory access. To find out which work item (of 512) is causing the error, I have had to gradually (and awkwardly) limit the participating work items, until I find the item(s) that are requesting this bad access. I find myself in this position reasonably often: is there a more graceful way to do this?

 

0 Kudos
1 Reply
Robert_I_Intel
Employee
137 Views

You may try the Oclgrind: https://github.com/jrprice/Oclgrind/wiki

Another one is webcl-validator: http://github.com/KhronosGroup/webcl-validator

Haven't tried those myself, but would be curious to find out if you think they are useful.

Reply