In case you had the driver or an earlier release of CUDA already installed, my recommendation is to first uninstall them.
If you cannot get the script to run or have a different linux version, head over to ... and install CUDA 10.1 by following their instructions. I strongy recommend the networked ".deb" package installation. Make sure to explain your any problems you encounter on the discussion page so that we can troubleshoot this guide.
Post installation, you should reboot your system to make sure it still works. Run the following commands in a shell to test installation, which should produce a similar output than what is shown: <syntaxhighlight lang="bash"># show version of the nVidia driver> glxinfo | grep NVIDIATODO: copy reference output # show version of the CUDA compiler toolchain> /usr/local/cuda/nvcc --versionnvcc: NVIDIA (R) Cuda compiler driverCopyright (c) 2005-2019 NVIDIA CorporationBuilt on Wed_Apr_24_19:10:27_PDT_2019Cuda compilation tools, release 10.1, V10.1.168 # show detected GPUs> nvidia-smiSat May 18 12:51:46 2019+-----------------------------------------------------------------------------+| NVIDIA-SMI 418.39 Driver Version: 418.39 CUDA Version: 10.1 ||-------------------------------+----------------------+----------------------+| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. ||===============================+======================+======================|| 0 Quadro GV100 On | 00000000:03:00.0 On | Off || 35% 48C P0 27W / 250W | 1490MiB / 32475MiB | 0% Default |+-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+| Processes: GPU Memory || GPU PID Type Process name Usage ||=============================================================================|| 0 1354 G /usr/lib/xorg/Xorg 800MiB || 0 1762 G cinnamon 331MiB || 0 10767 G /usr/lib/firefox/firefox 6MiB || <... more processes> ||=============================================================================|</syntaxhighlight>