Debug in cuda kernel

edited April 2014 in Old versions
Hi,

I am now trying to add constitutive models into DualSPHysics, so sometimes it is needed to trace dates in cuda kernels.

My work platform is VS2010+Nsight3.1. I use Nsight to debug device code and VS2010 for host code. When debugging host code you cannot go into kernels and when debugging device code you cannot go out of kernels.

Since SPH is running in a lot of loops, it is easy to debug kernel code in the first loop - just set a breakpoint in a kernel and it stops at the breakpoint in the first time step. However, since it is not allowed to go to host code the time step cannot be finished in Nsight debug mode, then how can I step into next steps and stop the program at the same location in the kernel?

Thanks!
Sign In or Register to comment.