Nsight Compute没有权限问题(linux系统上)

  • 3 replies
  • 1981 views
Nsight Compute没有权限问题(linux系统上)
« 于: 四月 13, 2022, 09:34:44 am »
遇到的问题:launch之后每个核函数都会出现ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device这个错误
查阅解决方法大家一般都是两点:
1、使用管理员权限运行nsight compute,但这好像是针对windows系统,对linux不太适用;
2、https://developer.nvidia.com/nvidia-development-tools-solutions-err_nvgpuctrperm-permission-issue-performance-counters官网给出了启用该权限的方法,但我按步骤做的时候这一步会出错:modprobe -r nvidia_uvm nvidia_drm nvidia_modeset nvidia-vgpu-vfio nvidia[2] # Unload dependent modules
,不知道要怎么做,请教大家

Re: Nsight Compute没有权限问题(linux系统上)
« 回复 #1 于: 四月 15, 2022, 06:39:27 pm »
sudo ncu 也不行吗

Re: Nsight Compute没有权限问题(linux系统上)
« 回复 #2 于: 四月 15, 2022, 09:43:08 pm »
sudo ncu 也不行吗
直接输入 ncu-ui 可以打开compute,就是launch时核函数会报没有权限的错误;
sudo ncu-ui 会出现说没有qt平台导致不能start the app【而上边直接ncu-ui软件是可以使用的,这是为什么呢】
命令执行如下:
dell@dell-Precision-5820-Tower-X-Series:~$ ncu-ui
********BP-RCM----nFrame:1, FrameLen=4096, mea=8192, iteration=1  [cudaEvent]***********
dell@dell-Precision-5820-Tower-X-Series:~$ sudo ncu-ui
No protocol specified
qt.qpa.xcb: could not connect to display :10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

/usr/local/cuda-11.2/bin/../nsight-compute-2020.3.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui:行 16: 3025862 已放弃               (核心已转储) "$NV_AGORA_PATH/CrashReporter" "NVIDIA Nsight Compute" "NVIDIA Nsight Compute" "2020.3.0.0 (build 29307467) (public-release)" "$NV_AGORA_PATH/ncu-ui.bin" "$@"

Re: Nsight Compute没有权限问题(linux系统上)
« 回复 #3 于: 四月 18, 2022, 10:04:58 am »
直接输入 ncu-ui 可以打开compute,就是launch时核函数会报没有权限的错误;
sudo ncu-ui 会出现说没有qt平台导致不能start the app【而上边直接ncu-ui软件是可以使用的,这是为什么呢】
命令执行如下:
dell@dell-Precision-5820-Tower-X-Series:~$ ncu-ui
********BP-RCM----nFrame:1, FrameLen=4096, mea=8192, iteration=1  [cudaEvent]***********
dell@dell-Precision-5820-Tower-X-Series:~$ sudo ncu-ui
No protocol specified
qt.qpa.xcb: could not connect to display :10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

/usr/local/cuda-11.2/bin/../nsight-compute-2020.3.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui:行 16: 3025862 已放弃               (核心已转储) "$NV_AGORA_PATH/CrashReporter" "NVIDIA Nsight Compute" "NVIDIA Nsight Compute" "2020.3.0.0 (build 29307467) (public-release)" "$NV_AGORA_PATH/ncu-ui.bin" "$@"
已解决,感谢回答