I am trying to profile an application on the Jetson board using nvprof. In the initial attempt nvprof gave that for profiling it should be run as root user. After running it as root user, I am able to get the profile timings.
I wanted to get rid of running nvprof as root user, so I started searching the nvidia forums and blogs. I found that adding a configuration in the “modprobe.d” will solve this problem. So I try to ad it but getting the below errors.
ubuntu@tegratx2:~$ modprobe nvidia NVreg_RestrictProfilingToAdminUsers=0 modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.9.140-tegra
Am I doing anything wrong here? Please help me to correctly set the modprobe conf to remove the root user dependency.