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" "$@"