You are here: Developer Tools > Desktop Developer Tools > NVIDIA Nsight Visual Studio Edition > View CUDA Information

The CUDA Information tool window shows 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:

Blocks

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.

Contexts

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).

Functions

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:

Grids

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.

Modules

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:

Warps

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; the current state is shown in the Lanes column.

Focus

Filtering results:

The color legend for the Lanes column is as follows: 

  Color Thread State
  Gray Inactive
  Forest Green Active
  Light Sea Green At Barrier
  Red At Breakpoint
  Orange At Assert
  Dark Red At Exception
  Dark Gray Not Launched
  Light Gray Exited

Note that if you hover your cursor over a row in the lanes column, a tool tip will appear that shows the state of the lane.

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

Lanes

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

The current state of the lane is shown as a barrier in the Status column.

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:

CUcontext==0x02c8c258
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.

Hyperlinks

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

Filter

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

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

Persistence

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.

Focus

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


of

NVIDIA GameWorks Documentation Rev. 1.0.150630 ©2015. NVIDIA Corporation. All Rights Reserved.