I'm developing an OpenCL application in C# with Cloo. I'm getting strange values back from my device (Intel CPU), so I decided to use an OpenCL debugger to set some breakpoints in the kernel. They are ignored, even though I've enabled the Intel Debugger in Visual Studio 2012. Maybe I should build the program using the path of the kernel and not a string containing the source, but I cannot find a way to do it using Cloo.
Here's the way i build the program:
program = new ComputeProgram(context, kernelSource);
program.Build(devices, "-g", null, IntPtr.Zero);
where kernelSource is the string containing the OpenCL source. Thanks in advance!