Nsight Compute使用出现does not have permission to profile错误如何解决

在Linux环境中使用Nsight Compute时遇到权限问题,通过查看ncu路径、添加cuda bin目录到secure_path以及调整Xserver设置,可以成功解决'ncu-ui'无法启动的错误。具体步骤包括修改sudoers文件和执行xhost +命令允许图形显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用了下面前两种方法都没成功,不适用于我。

方法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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值