I am trying to debug some CUDA code that is in a C++ DLL with Nsight 3.0 Visual Studio Edition, and I can’t get it to work.
I can debug the matrixMul sample project with no problems. But I can’t figure out how to debug my DLL. It’s a C++ DLL that I call from a C# application.
If I select the C# application as the startup project and start CUDA debugging, Visual Studio says my breakpoints won’t be hit (as I would expect). If I select the C++ DLL as the startup project and start CUDA debugging, the C# app starts and Visual Studio doesn’t complain, but none of the CUDA breakpoints are hit anyway.
Is debugging CUDA code that is in an unmanaged C++ DLL that is called from a C# app possible?