使用了下面前两种方法都没成功,不适用于我。
方法1:针对nvprof的
解决 nvprof 报错ERR_NVGPUCTRPERM - The user
修改sudoers改了还是不行
方法2:管理员权限打不开
dell@dell-Precision-5820-Tower-X-Series:~$ cd /usr/local/cuda-11.2/nsight-compute-2020.3.0
dell@dell-Precision-5820-Tower-X-Series:/usr/local/cuda-11.2/nsight-compute-2020.3.0$ sudo su
[sudo] dell 的密码:
root@dell-Precision-5820-Tower-X-Series:/usr/local/cuda-11.2/nsight-compute-2020.3.0# nv-nsight-cu
Command 'nv-nsight-cu' not found, but can be installed with:
apt install nsight-compute
root@dell-Precision-5820-Tower-X-Series:/usr/local/cuda-11.2/nsight-compute-2020.3.0# nuc-ui
nuc-ui