I am working on OpenCL. Does anyone know of a good debugger for OpenCL so that I can go into OpenCL code and trace?
Maybe a Gremedy OpenCL debugger would be helpful? http://www.gremedy.com/gDEBuggerCL.php
You can also look in CodeXL:
https://gpuopen.com/compute-product/codexl/
CodeXL was originally developed by AMD, but was later released as an open source project.
Your best bet is the Intel Debugger for CPU, announced in the Intel OpenCL SDK 1.5:
Intel OpenCL SDK you can gradually debug a visual studio.
Visual Studio Debugger Plug-in
Perhaps you can try using GDB on an x86 processor under Linux, see the AMD tutorial: http://developer.amd.com/gpu/ATIStreamSDK/assets/Debugging_OpenCL_with_GDB_on_x86_CPUs.pdf
Only AMD gDEBugger supports OpenCL step-by-step startup and other delicious features http://developer.amd.com/tools/gDEBugger/Pages/default.aspx
NVidia Parallel NSight and other NVidia products will not support OpenCL debugging due to marketing decisions.
I usually recommend using GPUVerify from Imperial College London and Oclgrind from the University of Bristol, especially when you delay debugging your OpenCL programs (but better even before that).
NVIDIA The Parallel Nsight debugger (formerly known as Nexus) supports OpenCL (GPU).
From the website:
Parallel Nsight supports CUDA C, OpenCL, DirectCompute, Direct3D, and OpenGL.
I have not used it, but CLBuilder looks promising
Key Features of CLBuilderWriting OpenCL cores with color syntaxCompile the kernel to check for errors without having to run and debug your own application.Easily create and select build options.Determine the input values ββof the kernel and check the results.Profile kernel runtimes to improve performance.Create various work item size settings (global and local) to test performances.Run the kernel from printf to the CPU and easily debug the code.Display input and output values ββon a chart.Consult the runtime log to see what CLBuilder does (each OpenCL C function logs).Check local and constant arguments and resources used by the kernel.Generate C code to start the kernel, CLBuilder will also compile this generated source code and execute it.Easily check all OpenCL features, including platform information.
Key Features of CLBuilder