3 Replies Latest reply on May 4, 2012 9:12 AM by bingdaozaixian

    debuge in opencl...

    bingdaozaixian

      what debuger tools do you usually use?

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

        • Re: debuge in opencl...
          Wenju

          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.

            • Re: debuge in opencl...
              gautam.himanshu

              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

              1 of 1 people found this helpful
            • Re: debuge in opencl...
              bingdaozaixian

              Thanks a lot!