Ncu return LaunchFailed

I think Nsight Compute is a great tool, but I always have problems with testing python files using ncu on win, as follows

ncu -o test4 C:\Users\xx\Miniconda3\envs\pytorch\python.exe test_mcpi_kernel.py
==PROF== Connected to process 21104 (C:\Users\xx\Miniconda3\envs\pytorch\python.exe)
==PROF== Profiling “mcpi” - 0: 0%…50%…100% - 1 pass
==ERROR== LaunchFailed
==PROF== Trying to shutdown target application
==ERROR== An error occurred while trying to profile.
==PROF== Report: D:\2023\program\numerical method\python\test4.ncu-rep
I’ve tested other python files and this problem occurs, what causes it?

CUDA Version:11.6
nvcc:10.2
Nsight Compute:2023.2.1

You’re matching an old version of CUDA with a new Nsight Compute. See the compatibility table here

Are you able to try a newer version of CUDA? Are you able to profile other applications (non-python) on the system?

1 Like