,ID,API Name,Details,Func Return,Func Parameter,Start,Duration,Queued,Submitted ,525,vector_add,
Error: ERR_NVGPUCTRPERM - The user does not have permission to access NVIDIA GPU Performance Counters on the target device. For instructions on enabling permissions and to get more information see https://developer.nvidia.com/ERR_NVGPUCTRPERM,,,,,,
I am using remote linux desktop. Many users are connected to this desktop. So, I cannot reboot to get permissions for GPU counters. Please provide the steps to get permissions to profile GPU counters without reboot and causing issues to other users.
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-73-generic x86_64)
NVIDIA-SMI 530.30.02
Driver Version: 530.30.02
CUDA Version: 12.1
As detailed on the website you reference, you have to become root on that machine to profile or load the nvidia kernel modules with the proper flags (which may be specified in the config file or on the command line while loading them). Loading kernel modules also requires root permissions. It is possible to unload and reload the kernel modules without rebooting, but not while other processes are accessing them. There are no other alternatives. You should reach out to that system’s administrator to facilitate this configuration change.
If you have sudo privileges, you can either profile directly on the remote system as sudo ncu ... and create a report file to open locally, or should also be able to launch on the remote system with sudo ncu --mode launch ... and then attach from your local system.