I need some help on debugging CUDA codes using my VS2005. I have done all of the following:
- Install CUDA build rule made by Jared (http://forums.nvidia.com/index.php?showtopic=30273) and enable it for my project.
- Set the /DEBUG linker option (to generate debug info).
- Compile the project in EmuDebug build by enabling Emulation on the CUDA property page.
The project compiles and runs, but when I set a breakpoint inside a .cu file, the breakpoint doesn’t seem to correspond to the line of code specified (e.g. it continues even when it encounters a return statement, it skips codes that are not inside a conditional block, etc.). Further, I also can’t view the variables’ values in the watch window (it says the symbol ‘variableName’ is not found). Could someone help me on this? Thanks!