Nsys profile exception

I am a beginner in CUDA.

When I tryed to profile a CUDA program using nsys profile, I encountered the following runtime error.

Here is some environmental information:

GPU: 5070Ti

Driver Version: 580.88

Cuda Version: 13.0

OS Version: Win11 24H2

@rknight

What version of Nsight Systems are you using?

Have you tried with a CUDA sample, or is this your code?

Hi wh3575580,

Can you try a couple of commands to narrow down the issue?

nsys profile –sample=none –cpuctxsw=none –trace=none ./Tensor_Add.exe
nsys profile –sample=none –cpuctxsw=none –trace=cuda ./Tensor_Add.exe

These commands should generate a file called reportX.nsys-rep. Try to File | Open the nsys-rep files in the Nsight Systems GUI. The first file should open but the GUI’s screen should be mostly empty since nothing significant was collected.

The 2nd file that traced CUDA should provide a CPU and GPU timeline of the CUDA behavior of your application.
Let me know what happens.

Bob

Nsight System verison is “Nsight Systems 2025.5.1” which is the latest version available.
I tried both Cuda Sample and my demo code that worked fine in Windows PowerShell without using “nsys profile”, and I got the same exception.

The same exception is still obtained by executing these two commands:

I suspect there are some reasons that I haven’t realized yet that cause nsys profile not working.