How to use ncu without root access

September 11, 2022

See here.

echo 'options nvidia "NVreg_RestrictProfilingToAdminUsers=0"' >> /etc/modprobe.d/nsys.conf

Then reload the NVIDIA driver.

To avoid permission issue due to conflict /tmp/nsight-compute-lock, set environment variable TMP to your own value before running ncu:

TMP=$HOME/tmp ncu ...