I’m running CUDA 5.5, NSight 3.2.1 and Visual Studio 2010. NSight stops happily at breakpoints, but refuses to resolve any symbols (apart from threadIdx and blockIdx).
-G is set correctly (I believe):
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe” --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” -rdc=true -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5include" -I"C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v5.5\CUDASamples\common\inc" -I"C:\Users\pcox\checkouts\HPP_gpu" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -Xcompiler "/EHsc /nologo /Zi /MTd " -o Debug%(Filename)%(Extension).obj “%(FullPath)”[/i]
“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe” -dlink -o Debug\gpu-image-compress_D.device-link.obj -Xcompiler "/EHsc /nologo /Zi " -G
The only complication may be that I’ve been working with separate compilations recently (hence “-rdc” above). Not sure if that can affect this…
Any ideas really welcome!
Combined the three .cu files into one on the hunch that it is a “separate compilation” thing, and now it’s working (even with “-rdc” still in place, and the nvcc line remaining as above). Strange…
any chance you could be linking against non-debug versions of the objects? …if not, any chance you could share your project with us? Thanks
It’s been a year since this post, but I am having a similar problem, although I am using Nsight 3.2.2 and Visual Studio 2012
I’m not sure whether or not it’s completely the fault of the -rdc option because I made a small pet project with multiple .cu files, and the -rdc option, but the debugging seems to be working fine. However, applying the same settings to my more complex project with SEVERAL more classes, I can’t view any of the symbols.
Specifically, when I set a break point and look at the locals I get things like
and demangled look something like…
vtable for std::_error_category
vtable for std::_Generic_error_category
Is there a way for you to share this project with us? You can PM me.