CodeXL is a strange beast. Uses gdb for debugging, but is far worse 😞
CodeXL supports kernel debugging as follows:
1) You must compile kernel from sources, not binary
2) Go to breakpoints and from the list at left choose "clEnqueueNDRangeKernel"
3) At debug time, clicking in the source code anywhere, will break at that point
Sorry about that. Missed the ocl 2.0 requirement. I know it works with ocl
1.2, haven't tried it with ocl 2.0 kernel, though.
I assume you are using latest codeXL.
You can still debug it as ocl 1.2 if you comment out the ocl2.0 calls and
compile it as ocl1.2...
BTW, best ask this question in the CodeXL forum...