NVIDIA® Nsight™ Application Development Environment for Heterogeneous Platforms, Visual Studio Edition 5.2 User Guide
Send Feedback
NVIDIA Nsight supports the standard Visual Studio Locals window for examining the value of local variables in CUDA source code, and the Watch window for interactively evaluating expressions.
The information in the Locals window and Watch window are available in the CUDA Debugger only when:
Your applications starts and the CUDA Debugger launches, stopping at the first breakpoint encountered.
The Locals window shows the list of variables, their assigned values, and type in the current lexical scope.
Note: The block and thread indices are exposed in the blockDim and the threadIdx variables. |
Note: Variables that have not yet been initialized show triple question marks as their value: ??? |
The CUDA Debugger evaluates the expression displayed in the Name column, and places the result in the Value column.
If the expression refers to a variable that is not valid at the current execution location, the expression value displays an error message.
If the expression is a variable, you can edit the value in this column to change the contents of the variable. You cannot edit the value of const variables.The right column of the Watch window shows the value to which the expression evaluates.
Note: The CUDA Debugger supports a significant percentage of C++ expression syntax, including:
Given the source variable |
Options include: the Expand Pointers as Array option, and the Max Array Elements, which controls the maximum number of array elements shown for an array expression in the Watch window.
NVIDIA® Nsight™ Application Development Environment for Heterogeneous Platforms, Visual Studio Edition User Guide Rev. 5.2.161206 ©2009-2016. NVIDIA Corporation. All Rights Reserved.