# ADD options nvidia NVreg_RestrictProfilingToAdminUsers=0 to
echo "options nvidia NVreg_RestrictProfilingToAdminUsers=0" | sudo tee /etc/modprobe.d/nvidia-profiler.conf
# rebuild the initrd after writing a configuration file to /etc/modprobe.d
sudo update-initramfs -u -k all
sudo reboot
/usr/local/cuda-12.4/bin/ncu --set full -o output $(which python) -m triton_mode.mamba.scan