I am unable to debug CUDA programs in Nsight. Whenever I click on Start CUDA debugging, I just get a message saying that Nsight has connected from host-PC to host PC, then another one saying that Nsight has disconnected. In the output box on Visual Studio I get the following message:
The thread ‘CUDA’ (0x1) has exited with code 0 (0x0).
The program ‘ PS1.exe: CUDA’ has exited with code 0 (0x0).
So my program does run and the CUDA kernels are launched and completed successfully but the program does not pause in the breakpoints on the CUDA kernel code.
I tried debugging the included samples in the CUDA SDK and in those examples the execution pauses on the breakpoints. I have checked the project settings on both the sample programs and mines and they are the same.
Any help would be greatly appreciated,
Possibly relevant Info
OS:Windows 7 Pro
Hardware: Intel i5 w 4GB RAM
NVIDIA CARD: 1 GeForce GT640
Driver Version: 331.65
CUDA Version: 5.5
Compute Capability: 3.0
Visual Studio 2012 Ultimate
Nsight Visual Studio Edition 3.1
just to add: the project I am experiencing this problem makes use of openCV. I do not know if this would cause any problems