AnsweredAssumed Answered

CodeXL Could not debug kernel

Question asked by alanhaoxiang on May 14, 2016

When I am running the OpenCL program with VS2013, got an CodeXL pop-up window saying "CodeXL could not debug" - "The kernel is not debuggable (it was probably built without debugging flags). Please create the probram with clCreateProgramWithSource and build it with clBuildProgram."

 

I referred to this post (Automatic injection of -g option when building GPU kernel ) and then I check my callstack. Now I am pretty sure the kernel was built by clCreateProgramWithSource (see screenshot below), and I am running OpenCL 2.0 (based on the info from CodeXL). What are the other potential reasons that can cause this?

Desctop screenshot.png

Outcomes