ERR_NVGPUCTRPERM: Permission issue with Performance Counters
NVIDIA has a page that addresses the issue. Unfortunately, the instructions didn't solve the problem for me. However, I found a solution from rameshgunjal in the NVIDIA forums.
You might have noticed that sudo nv-nsight-cu
results in an error. Instead, you have to provide the path: sudo /usr/local/cuda/bin/nv-nsight-cu
. The same applies for other applications as well: sudo /usr/local/cuda/bin/nsight-sys
.
You might be thinking: There must be a reason why NVIDIA restricted access to admins only - and there is. In the Description it is stated, that the security flaw is 'not a network or remote attack vector'. Further, NVIDIA has released updated drivers to address this issue in February 2019. So I don't think there is much to worry about.
If you temporarily want to enable access for all users you can call:
modprobe nvidia NVreg_RestrictProfilingToAdminUsers=0
For persistence across reboots:
- Create a .conf file with a file name of your choice in the
/etc/modprobe.d/
directory - Write
options nvidia "NVreg_RestrictProfilingToAdminUsers=0"
into it - Restart your computer
Steps 1 and 2 can be performed with the following command:
(echo 'options nvidia "NVreg_RestrictProfilingToAdminUsers=0"') | sudo tee -a /etc/modprobe.d/RestrictedProfiling.conf >/dev/null
You can check if everything worked by calling the following command:
cat /proc/driver/nvidia/params | grep RmProfilingAdminOnly
It should return RmProfilingAdminOnly: 0
.