export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Start the persistence daemon:
/usr/bin/nvidia-persistenced --verbose
This should be run at boot, so:
vi /etc/rc.local
#!/bin/sh -e
/usr/bin/nvidia-persistenced --verbose
exit 0
chmod +x /etc/rc.local
Verify the driver:
cat /proc/driver/nvidia/version
====Test the installation====
Make the samples in:
cd /usr/local/cuda-10.1/samples
make
Change into the sample directory and run the tests:
cd /usr/local/cuda-10.1/samples/bin/x86_64/linux/release
./deviceQuery
./bandwidthTest
And yes, it's a thing of beauty!