This is a short post (mainly for myself) to remember how I got CUDA installed on Void Linux. These steps are as follows: chmod +x ./cuda_version.run
1sudo ./cuda_11.8.0_520.61.05_linux.run --silent --override --toolkit --no-opengl-libs --tmpdir=/home/aselimov/down/tmp
1export PATH="$PATH:/usr/local/cuda-version/bin"
2export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-version/lib64" The reason I had to add the --tmpdir command was because I was getting an error message about the default tmp directory not having enough space. Hopefully this helps someone else out!