ERR_NVGPUCTRPERM permission denied error

I’m trying to use Nsight Compute to profile , I keep running into the ERR_NVGPUCTRPERM permission denied error.

I have followed all setps at and they do not work.

The following errors occur in the second line:

rmmod: ERROR: Module nvidia is in use by: nvidia_modeset

What do I have to do to use Nsight Compute?

I’m using Qudro RTX 6000 with CUDA 10.2 ,Ubuntu 18.04.5


Can you try to manually unload the remaining modules using e.g.

rmmod nvidia_modeset
rmmod nvidia

or the equivalent modprobe -r comment, and then re-try loading the module again with the proper reg key? Should that not work, please check that there are no remaining processes using these modules, e.g. the nvidia persistence daemon is disabled, should it be running on your system.

Alternatively, you can create the listed file in /etc/modprobe.d and reboot your machine. This doesn’t require to manually unload/load the driver kernel modules.

The result is the same. The same error occurs.

What am I supposed to do? Give me more details.

The instruction are on the web page

Alternatively, A file containing 'options nvidia "NVreg_RestrictProfilingToAdminUsers=0"' may be saved to /etc/modprobe.d
A reboot may be required in order for this to take effect, but these settings will be persisted
1 Like

I don’t care about the file type? Or do I have to .conf?

The file should be given the .conf extension for modprobe to properly pick it up.

Thanks to you, I’m successful.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.