NVIDIA® Nsight™ Development Platform, Visual Studio Edition 3.2 User Guide
Send Feedback
In the following walkthrough we present some of the more common procedures that you might use to debug a CUDA-based application. We use a sample application called Matrix Multiply as an example. NVIDIA Nsight includes this sample application.
For the purpose of this walkthrough, we are going to assume that the application is debugged remotely (the NVIDIA Nsight host software running on a machine with Visual Studio, and the Nsight Monitor running on a separate machine).
matrixMul_kernel.cu
.matrixMul_kernel.cu
at the statement:int aStep = BLOCK_SIZE
matrixMul_kernel.cu
at the statement that begins:for {int a = aBegin, b = bBegin;
In this section of the walkthrough, you opened the sample project and set breakpoints. Next we build the sample project and start the debugging session.
localhost
with the name of your target machine (the remote computer where the application to be debugged will run). This can be the IP address of the machine on your local network, or the machine name as recognized on your network.
WRONG:M:\
CORRECT:jsmith.mydomain.com
On the host machine, notice that a pop-up message indicates that a connection has been made. You've started the debugging session. In the next section of this walkthrough, we'll look at some of the windows that you typically inspect during a debugging session.
In Visual Studio 2010, you may have a dependency fail because the properties of the .cu file are configured incorrectly. To workaround this issue, use the following steps.
NOTE: You cannot change the value in GPU memory by editing the value in the Locals window.
__local__
, __const__
or __shared__
make sure the Visual Studio Memory view is set to Re-evaluate automatically. This will ensure that the memory shown is for the correct memory space. Without this, the display can change to an address which defaults to global memory.
How Tos
How To: Launch the CUDA Debugger
How To: Set GPU Breakpoints
How To: Setup Local Headless GPU Debugging
How To: Specify Debugger Context
Reference
Tesla Compute Cluster (TCC)
NVIDIA® Nsight™ Development Platform, Visual Studio Edition User Guide Rev. 3.2.131009 ©2009-2013. NVIDIA Corporation. All Rights Reserved.