cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

debuge in opencl...

what debuger tools do you usually use?

when i debuge the program, failed in the function clBuildProgram(...). who can help me? Thanks.

0 Likes
1 Solution
Wenju
Elite

Hi,bingdaozaixian

     Before I debug a kernel, I usually use AMD APP KernelAnalyzer to compile it, and  debug others I'd just use VS. Maybe you should  improve your debug method. At first ,you should get the number of the return by clBuildProgram(), then find the error information in cl.h, and try to understand why failed. Besides, you should refer some references about Opencl, and then check the arguments of clBuildProgram(), and check the return of the function.    

    Thank you.

View solution in original post

0 Likes
3 Replies
Wenju
Elite

Hi,bingdaozaixian

     Before I debug a kernel, I usually use AMD APP KernelAnalyzer to compile it, and  debug others I'd just use VS. Maybe you should  improve your debug method. At first ,you should get the number of the return by clBuildProgram(), then find the error information in cl.h, and try to understand why failed. Besides, you should refer some references about Opencl, and then check the arguments of clBuildProgram(), and check the return of the function.    

    Thank you.

0 Likes

Hi,

I think AMD gDEBugger is what you have seeking. It is a really nice tool for kernel level debugging.

Earlier debugging was only supported for CPUs using GDB, but now this tool comes to help

New version has just released, I am not sure how buggy it is. So better check out both new and old version

Thanks a lot!

0 Likes