I upgraded from CUDA 12.2 to CUDA 12.5 using cuda_12.5.0_555.85_windows.exe.
Now next-gen debugging runs very slowly compared to running the program with the VS debugger.
For example, a kernel launch and synchronize takes about 3 seconds with next-gen debugging vs 420 ms with the VS debugger as measured with breakpoints in host code. The legacy debugger does not seem to have the slowdown issue, but it does not stop at any breakpoints, so I have no firm numbers. I don’t recall any significant slowdown when doing next-gen debugging with 12.2 or earlier releases.
I have a real-time application. An 8x slowdown can interfere with its normal operation, making debugging very difficult.
Any suggestions for fixing the issue or finding its cause?
Some details:
The CUDA 12.5 install repeatedly failed at Nsight Compute, so I had to uncheck it to have the install complete. Before I figured that out, I upgraded the Nvidia driver to 555.99.
I do local debugging with a GPU that is not used for display.
The CUDA memory checker is disabled in the Nsight menu and in Nsight options.
GTX 1070 Ti
Nvidia driver 555.99
Windows 10 22H2
Visual Studio 2017
HAGS: enabling/disabling does not change the debugging behavior.
The code is compiled with debug info enabled.
The slowdown happened both before and after I rebuilt the entire solution (i.e., built with 12.2 and 12.5.)
Visual Studio Info (abridged):
Microsoft Visual Studio Professional 2017 (2)
Version 15.9.50
VisualStudio.15.Release/15.9.50+28307.2094
Microsoft .NET Framework
Version 4.8.09037Installed Version: Professional
Visual C++ 2017 00369-60000-00001-AA551
Microsoft Visual C++ 2017ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggersMicrosoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC PackageMLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed InfoNuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.NVIDIA CUDA 11.7 Wizards 11.7
Wizards to create new NVIDIA CUDA projects and source files.NVIDIA CUDA 12.2 Wizards 12.2
Wizards to create new NVIDIA CUDA projects and source files.NVIDIA CUDA 12.5 Wizards 12.5
Wizards to create new NVIDIA CUDA projects and source files.NVIDIA Nsight Visual Studio Edition 2024.2.0.24102
NVIDIA Nsight Visual Studio Edition - CUDA support 2024.2.0.24102
NVIDIA Nsight Visual Studio Edition - CUDA support provides tools for CUDA development and debugging.Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual StudioVisual Studio Tools for CMake 1.0
Visual Studio Tools for CMake