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).
continued…
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…
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
_ZTVSt13error_category
_ZTVSt23_Generic_error_category
.
.
.
and demangled look something like…
vtable for std::_error_category
vtable for std::_Generic_error_category
.
.
.