How can I debug host functions in CUDA programs and watch the program exit in Visual Studio using Nsight?
I just set up a Parallel Nsight debugging environment and started remote debugging my CUDA program. I can debug a kernel function, but I don't think I can set a breakpoint in the host function and let the debugger stop at that breakpoint. I don't know where to look at the program output. The remote computer actually pops up a command prompt window and the output is displayed in that window. But I want to see the output on my local machine. Any suggestions?
My environment:
target machine (remote machine): Windows 7, Parallel Nsight monitor 2.1, GTX 315.
host machine (local machine): Window 7, Visual Studio 2010, Parallel Nsight 2.1, GTX 9400 m
source to share
To do this, you will also need to remotely debug your host code. That is, you will need to launch a separate instance of Visual Studio. AFAIK you cannot achieve the same from the same Visual Studio instance.
This new instance is used to start debugging by attaching to a process. When choosing a process to connect to, make sure you select your remote computer and connect to it running on it.
source to share