Search code examples
c++referencecudavisual-studio-debuggingnsight

How to watch reference variables using CUDA Parallel NSight debugger?


I can properly watch any variable or pointer but cannot do it for reference variables when debugging with NSight. I have already tried to convert the reference to pointer in the watch or immediate windows but no avail. I don't want to rewrite my code using pointers. I'm using Visual Studio 2010 SP1 in a Windows 7 64 bits machine, CUDA 4.0, Parallel NSight 2.0 and my code is compiling for Win32.

Example: __ device__ void function(int& parameter)

Cannot debug parameter. It is unreachable by debugger.


Solution

  • Updated to Nsight 2.2, CUDA 4.2 and Dev driver 301.32 and that did the trick.