ERR_NVGPUCTRPERM user does not have permission

Hi,
I’m trying to use Nvidia Visual Profiler for my application on my Jetson Xavier NX DevKit but I can’t find a way to analyse any application, even the vpi sample.
I always have this error :
Warning: ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device
I saw a very similar topic here : No Permission to Performance Counters as Root - #3 by 295885671
But no solution works for me, here is what I use to launch Nvvp :

sudo /usr/local/cuda-10.2/bin/nvvp -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java --cap-add=SYS_ADMIN

  • $ head -1 /etc/nv_tegra_release
    #R32 (release), REVISION: 5.2, GCID: 27767740, BOARD: t186ref, EABI: aarch64, DATE: Fri Jul 9 16:05:07 UTC 2021
  • Ubuntu 18.04
$ nvidia-smi

Tue Nov 2 15:26:57 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … Off | 00000000:01:00.0 N/A | N/A |
| 17% 42C P0 N/A / N/A | 258MiB / 3017MiB | N/A Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+

Can the issue comes from the different CUDA version ? My driver is 11.4 and Nvvp is 10.2.
Any help would be appreciated.

Adding a configuration file in /etc/modprobe.d/cuda.conf containing :

/etc/modprobe.d$ cat cuda.conf
options nvidia “NVreg_RestrictProfilingToAdminUsers=0”

Then sudo update-initramfs -u, didn’t change anything.

Any idea ?

On Tegra platforms, one need to launch the profiling tool with ‘sudo’ or as the root user to profile events and metrics. Performance counters permission issue page has been updated for specific instructions needed for Linux and QNX Mobile targets.