ERR_NVGPUCTRPERM Despite following instructions

Hi,

I’m trying to use ncu to profile my GPU, but I keep running into the ERR_NVGPUCTRPERM permission denied error.

I have followed all steps at NVIDIA Development Tools Solutions - ERR_NVGPUCTRPERM: Permission issue with Performance Counters | NVIDIA Developer and they do not work.

I’m using a RTX 3080 with CUDA 11.2, Driver 460.73.01 on Ubuntu 20.04.

Thanks!

The steps on the webpage are known to work, you might need to verify that they were applied in the correct order. Can you check the following:

Does profiling work for you when run as sudo/root?

Have you created a file with this exact content

options nvidia "NVreg_RestrictProfilingToAdminUsers=0"

within /etc/modprobe.d, e.g. as below

/etc/modprobe.d/nvidia.conf

and rebooted afterwards?

If so, have you confirmed that the file is still present after reboot?