2
votes

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?

1
Did you build from within the Nsight or outside of it? I have not seen anything like this on 10.8.0, I will update my laptop to 10.8.1 and double-check. - Eugene
I built from inside Nsight. I should add that I had the same issue on 10.8.0. - nftw

1 Answers

1
votes

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.