NVIDIA Nsight Visual Studio Edition 2.2 User Guide > CUDA Debugger > How To > View CUDA Information

The CUDA Information tool window show information on the current state of CUDA within the process that is being debugged.

To view the CUDA Information Tool Window:
  1. Launch the CUDA Debugger.
    1. Open a CUDA-based project.
    2. Make sure that the Nsight Monitor is running on the target machine.
    3. From the Nsight menu, select Start CUDA Debugging.
      As an alternate option, you can also right-click on the project in Solution Explorer and choose Start CUDA Debugging.
    4. The CUDA Debugger starts and launches the target application.
  2. From the Nsight menu, choose Windows > CUDA Info. Select the CUDA Info page that you wish to open.


CUDA Info Tool Window Pages

There are several pages within this tool window that allow you to view different aspects of your CUDA application that is being debugged.

The CUDA Information tool window pages include the following: 


The Blocks page shows all active blocks in the current kernel running on the GPU. The hyperlink in the # Warps column will jump to the Warps page, filtered to the specific block.


The Contexts page shows information about all contexts on all GPUs in the process that is currently being debugged. Information on this page is always available, even when the process has not been stopped.

Note that the SW Preemption column is used to show if the application is using software preemption (on a single GPU) or non-preemption (either classic or hardware).


The Functions page shows information about all functions in all loaded modules. Information on this page is always available, even when the process has not been stopped.

Tips for filtering the results on this page: 


The Grids page shows all active and queued kernels on the GPU. The current kernel will have a # Blocks greater than 0. Other kernels will show # Blocks set to 0.


The Modules page displays information about all modules in all contexts. The information shown here matches the modules that are seen in the Visual Studio Modules view. Information on this page is always available, even when the process has not been stopped.

Tips for using the Modules page: 


The Warps page displays all active warps on the GPU. Each row represents one warp, and the Lanes column displays information about all lanes for each of the warps in the view. A lane is a single thread in one warp. The Lanes column gives per-lane details about any warp exceptions.


Filtering results: 

For more information on the Warps page, see the Example Scenarios of the CUDA Warp Watch section.


The Lanes page displays information about all lanes in the current focus warp. A lane is a single thread in one warp.


Memory Allocations

This page shows information for all CUDA global memory allocations, in all CUcontexts in the application. This page automatically updates when suspended in a kernel.

Like other pages, the results can be filtered. For example: 

MemoryAllocationType == "Host" && Size > 100

A few columns to note on this page include the following: 

When stopped in a kernel, the command Set Memory View Expression can be used to open the memory view, and set the address to view that memory.


General Features of the CUDA Information Tool Window

Viewing Rows

This displays the number of rows in the current view. If the view is filtered, the number shown may be less than the number of total rows.


A hyperlink will use a specific filter to jump the current tool window to another page.


Use $(“Column Name”) to specify by the exact name of the column, including spaces. The column name must be quoted.

The results in each page can be filtered by an expression. This leads to shorter expressions.

Other tips for filtering results: 


Bookmarks are a quick way to jump to a specific page, with a preset filter.


When debugging, each page will persist the last state that it was displaying. Any filters that have been created by clicking on a hyperlink will not be persisted in the next debug session.


To update the current focus in the Warps and Lanes pages, you can use any of the following methods:





NVIDIA® Nsight™ Development Platform, Visual Studio Edition User Guide Rev. 2.2.120522 ©2009-2012. NVIDIA Corporation. All Rights Reserved.