Search code examples
eclipsecudansightcuda-gdb

CUDA Nsight Eclipse debugger error (Mac OS X)


I am running Nsight Eclipse edition on my MacBook PRO (OS X 10.8.2, mountain lion, CUDA 5.0, GT650M) and I am getting a strange error each time I try to start the debugger in Nsight. In the console I get: Coalescing of the CUDA commands output is off. and an error screen.

Here is a screenshot of the error:

http://img201.imageshack.us/img201/6857/screenbvm.png

I went through the Nsight documentation and found this line:

GPUs used to run X11 (on Linux) or Aqua (on Mac) cannot be used to debug CUDA applications in Nsight Eclipse Edition. Consult cuda-gdb documentation for details.

Does this mean I can't run the debugger form Nsight, but just from terminal?


Solution

    1. The message you are seein means the debugger was not properly setup on your system (e.g. it will not even work from the console). Please follow the steps outlined in "Setting Up the Debugger Environment" of the cuda-gdb manual
    2. You will need a two-GPU system to debug a CUDA code using visual debugger. Unfortunately, no Mac laptops qualify even though they have Intel graphics. The issue been the OS can start using NVIDIA GPU at any moment and may hang if the device is suspended on a breakpoint.