Search code examples
eclipsecudaosx-mountain-lionnvccnsight

"No source available for.." using Nsight Eclipse Edition RC1 on OSX 10.8.1


I'm trying to use CUDA 5 RC1 on OS X Mountain Lion 10.8.1. When debugging from Nsight Eclipse Edition I get the error:

No source available for main()

I've verified that nvcc is set to use -g and -G to emit device and host debug symbols and that -O0 is set to disable optimizations.

Any ideas what the issue is or some other diagnostics I can carry out?


Solution

  • The issue, for me at least, turned out to be that the architecture needed to be set to x64.

    To do this, right click on your project and hit Properties.

    Then go to Build --> Settings --> Tool Settings.

    Under NVCC Compiler --> Code Generation, set Architecture to x64.

    Under NVCC Linker --> Miscellaneous set Architecture to x64.

    Finally, clean the project and rebuild.