I have a problem with debugging my testsuite in Visual Studio.
I have a project “MainProject” and a project called “whitebox” where i wrote some tests.
At this project i am calling a Cuda-Kernel written at convolution.cu at MainProject.
The application works well but if i try to debug my kernel with nsight debugger it replies
Der Thread ‘CUDA’ (0x1) hat mit Code 0 (0x0) geendet.
Das Programm “[5088] whitebox.exe: CUDA” wurde mit Code 0 (0x0) beendet.
If i open a new Cuda C project the debugging works well but i need to debug my c++ Project which includes
cuda code. Any ideas?
I think my nsight user properties are correct. The path is set to the whitebox.exe. Do i have to make further settings in Visual Studio?
Could you tell me how you launch the debugger, your GPU and driver version?
The message is clear, the cuda app runs well, you should hit the bp in cuda code. BTW you should launch the cuda debugger via “right click the project → Debug menu → Start legacy debugger”.
i tried to launch the debugger in the nsight menu of visual studio by starting the
cuda legacy debugger and via right click the project, but it doesn’t matter. It doesn’t work either.
Hi, nsight can only debug the code in global or device, it cannot debug the c++ code unless you use the next-gen debugger in nsight 5.6, but next-gen only work with tesla cards.
I know that but i try to explain my project setup.
I have in my project both .h, .cpp, .cu, .cuh files and of course
i only try to debug my global functions with nsight.
But this doesn’t work and that’s the matter.
What Nsight User Properties do i need?
Do i have to change some other Properties in my Visual C++ Project?
Perhaps it’s not possible to debug my cuda kernels in a Visual c++ project
because i have no option tab like cuda c++ in my project properties
where i can set the cuda debugging to yes?
I have really no idea what the problem is?
I really have no idea, we have a test case to cover this scenario. Last question, did you use debug mode to compile you cuda app? if it still doesn’t work, can you share your project with me? I shall repo it on my computer.
Sorry, I really have no idea, we have 750Ti in our auto test machine and nsight works well with them, could you share a minimum project which doesn’t have any confidential code then I can try to repo it on my computer.