Using GPU Core Dump Files

>

NVIDIA® Nsight™ Application Development Environment for Heterogeneous Platforms, Visual Studio Edition 5.5 User Guide
Send Feedback


Note: This feature is only supported by the Legacy CUDA Debugger. The Next-Gen CUDA Debugger will support this in a future release.

NVIDIA Nsight supports debugging CUDA GPU core dumps. To use this feature, there are 3 requirements:

  1. The GPU driver needs to be in TCC mode.
  2. The system environment variable CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1 needs to be set.
  3. Generate GPU debug information needs to be enabled in the CUDA Project Properties, and the application needs to be compiled with -G in the command line arguments.

The GPU core dump will be generated as a *.nvcudmp file in the same directory as the executable. You can open this generated file (or a core dump file that was previously generated) in Visual Studio, either from the File > Open menu, or by dragging and dropping it into Visual Studio.

This shows you a read-only view of raw information in three collapsible sections: a dump summary, registers, and visible CUDA devices.

Note: At this time, NVIDIA Nsight only supports GPU core dumps; any generated CPU core dump information will be ignored.

From this summary view, you can launch the CUDA debugger with the GPU core dump file set as the target application. Note that this will only work with a local debugging configuration, so the Nsight monitor will have to be running on the local machine. This will allow you to view CUDA debugging information, which can provide more diagnostic details, such as:


NVIDIA® GameWorks™ Documentation Rev. 1.0.180426 ©2014-2018. NVIDIA Corporation. All Rights Reserved.