When I try to debug an arbitrary CUDA application, e.g. the matrix multiplication or convolutionSeparable sample from the Nvidia GPU Computing SDK 4.0, I always get an output similar to:
Parallel Nsight Debug
CUDA grid launch failed: CUcontext: 2059192 CUmodule: 348912936 Function: _Z9matrixMulILi32EEvPfS0_S0_ii
……
……
And a file with the following content is showing up:
Parallel Nsight CUDA Debugger
The application being debugged with the Nexus CUDA debugger, was unable to find any associated source. This could be for a number of reasons:
1) CUDA has not been initialized. Make sure cuInit has been called, and it returned a successful result.
2) No CUDA contexts have been created. Once a context is created, memory can be examined in the context. Each context shows up as a single "Thread" in the Visual Studio Threads view. (Debug | Windows | Threads)
3) There are no active CUDA grids in any context. A grid must be launched in order to hit breakpoints.
4) You have selected the "Default Context" in the Visual Studio Threads view. This context is a placeholder shown when there are no available actual CUDA contexts. It does not show real data.
5) No CUDA modules have been loaded. You can see which modules are loaded in each CUDA context by showing the Visual Studio Modules view. (Debug | Windows | Modules)
6) Symbolics were not found for the loaded .cubin. The module needs to be built with debug information. Please specify the -G0 switch when building.
7) A grid launch failed while running a kernel.
Each breakpoint within the corresponding “.cu” file is completely ignored during the run. When I just run the application, without Nsight Debugging, the program executes without any problems.
What can I do to tackle this problem?
My Setup:
- 1xIntel GPU and 1x NV 570GTX, I want to use the local debugging option
- Win 7. Pro 64Bit
- Dev Env.: VS2008 or VS2010
- CUDA 4.0 & Parallel Nsight 2.0
- NV Driver Vers.: 285.38
- WPF is disabled
- TDR is disabled
- Windows runs in Basic mode (no aero)
- Project Propertys: Cuda Runtime API -> GPU-> Generate GPU Debug Information -> Yes (-G0)