Search code examples
eclipsecudanvccnsight

Nsight Eclipse Edition not finding nvcc


I just installed CUDA 5.0 Preview (Mac OS X Lion) and I'm having trouble with Nsight.

The toolkit seems to be installed correctly. (Driver loads, nvcc -V works in bash, samples work fine).

When I create a new project I get warnings:

  • Error launching external scanner info generator (nvcc -dryrun ...)
  • Program 'nvcc' is not found in $PATH

In Preferences -> CUDA Toolkit I get no CUDA-compatible devices detected. Which is strange because I have nVidia GT 650M on my machine. So why doesn't Nsight recognize it?

If I try to build a project I get 2 errors:

  • /bin/sh: nvcc: command not found
  • make: * [src/test.o] Error 127

Solution

  • How do you start Nsight? Do you use /usr/local/cuda/bin/nsight? Unfortunately, it is not currently possible to launch Nsight by double-clinking the application on Mac OS X.

    In the CUDA 5.0 Preview build we had a bug when shell script did not properly setup paths. This is how this script looks like in latest internal toolkit builds (you may need to adjust paths depending on your toolkit install location - in the final release installer will handle it):

    #!/bin/sh
    PATH="$PATH:/Developer/NVIDIA/CUDA-5.0/bin" DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Developer/NVIDIA/CUDA-5.0/lib" "/Developer/NVIDIA/CUDA-5.0/libnsight/nsight.app/Contents/MacOS/nsight" $@