English 中文(简体)
Debugger for OpenCL [closed]
原标题:
  • 时间:2010-03-02 09:49:45
  •  标签:
  • opencl

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

I am working on OpenCL. Does anyone know of a good debugger for OpenCL so that I can step into the OpenCL code and trace?

最佳回答

Perhaps Gremedy s OpenCL debugger would be helpful? http://www.gremedy.com/gDEBuggerCL.php

问题回答

You may also want to look into 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 Intel Debugger for CPU, announced at Intel OpenCL SDK 1.5:

Intel OpenCL SDK you can step-by-step debug in visual studio.

Visual Studio debugger plug-in

Maybe you can try to use GDB on x86 CPU under Linux OS, see AMD s tutorial: http://developer.amd.com/gpu/ATIStreamSDK/assets/Debugging_OpenCL_with_GDB_on_x86_CPUs.pdf

Only AMD gDEBugger supports OpenCL step by step running and other tasty 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 generally recommend using GPUVerify from Imperial College London and Oclgrind from the University of Bristol, especially when you are stuck debugging your OpenCL programs (but better even before that).

I have not used it, but CLBuilder looks promising

Main features of CLBuilder

  1. Write OpenCL kernels with color syntaxing
  2. Compile the kernel to check errors without the need to launch and debug your own app.
  3. Easily create and select Build settings.
  4. Define kernel input values and check results.
  5. Profile the kernel execution time in order to improve performances.
  6. Create different Work Item Sizes Set (Global and Local) to check performances.
  7. Execute the kernel with printf on CPU and easily debug the code.
  8. Display input and output values on a chart.
  9. Consult execution log in order to see what CLBuilder is doing (log each OpenCL C function).
  10. Check Local and Constant arguments and resources used by the kernel.
  11. Generate C code to execute the kernel, CLBuilder will also compile this generated source code and execute it.
  12. Easily check all OpenCL properties including platform information.

NVIDIA s Parallel Nsight debugger (formerly known as Nexus) supports OpenCL (GPU).

From the website:

Parallel Nsight supports CUDA C, OpenCL, DirectCompute, Direct3D, and OpenGL.





相关问题
What s the perror() equivalent for error codes in OpenCL?

If I have something like: err = clEnqueueReadBuffer(cmdQueue, output, CL_TRUE, 0, sizeof(float) * data_sz, &results, 0, NULL, NULL); I d like to do: if (err != CL_SUCCESS){ perror("Read ...

Debugger for OpenCL [closed]

I am working on OpenCL. Does anyone know of a good debugger for OpenCL so that I can step into the OpenCL code and trace?

How do I test OpenCL on GPU when logged in remotely on Mac?

My OpenCL program can find the GPU device when I am logged in at the console, but not when I am logged in remotely with ssh. Further, if I run the program as root in the ssh session, the program can ...

OpenCL Texture Memory

I m fairly new to OpenCL so please bear with me. In the first iteration of my code, I used basic memory buffers for large datasets and declared them global. However now that I m looking to improve ...

Using Delphi to take advantage of GPGPU technology?

GPGPU is the principle of using the parallel processors on video cards for massive increases in performance. Does anyone have any ideas about using GPGPU in Delphi, using either OpenCL or CUDA? CUDA ...

热门标签