问题
I'm trying to debug a cuda application using Nsight with Visual Studio 2008, so I opened the Attach to Process dialog. I set the Transport to be Nsight GPU Debugger. I set the Qualifier to the name of my machine (MONAD in this case). I see a list of processes in the Available Processes widget, but they are all greyed out, and if I click on my application, it remains greyed out and I cannot click the attach button.
When I built the application I made sure to use the -G0 flag when compiling my .cu files with nvcc
回答1:
Please make sure you have set the monitor settings and the environment variables as described in the Nsight Visual Studio Edition 3.0 chapter Attach Debugging to a Running CUDA Process
Let me know if that helps. Thanks
来源:https://stackoverflow.com/questions/14984986/cant-attach-to-process-to-debug-using-nsight-in-visual-studio-2008