nv-nsight-cu-cli: command not found

I already installed the NVIDIA Driver 418.67 and Cuda 10.1.168 in my server. The nvprof can work well, but when I want to try use nsight in command line (nv-nsight-cu-cli), it shows: command not found.

I check /usr/local/cuda-10.1/NsightCompute-2019.3, it has nv-nsight-cu-cli and nv-nsight-cu, but both show " command not found " when test. So how to figure out it?

A shortcut nv-nsight-cu-cli is located in the base directory (/usr/local/cuda-10.1/NsightCompute-2019.3) of the NVIDIA Nsight Compute installation. The actual executable is located in target/linux-desktop-glibc_2_11_3-x64 on Linux.

Can you please try with using the full path:

/usr/local/cuda-10.1/NsightCompute-2019.3/nv-nsight-cu-cli

Yes, it works, thanks a lot.