I run Void Linux on a Thinkpad T480 with Integrated Intel graphics and a discrete Nvidia MX150. I’ve decided to start working with more CUDA development and was running into an issue where my Nvidia GPU would suddenly stop being detected by CUDA applications. The only way I could figure out to get it back online was by rebooting my computer. Eventually I became so frustrated that I decided to dive in and find a solution.
Posts for: #CUDA
Getting CUDA toolkit installed on Void Linux
This is a short post (mainly for myself) to remember how I got CUDA installed on Void Linux. These steps are as follows:
- Download the installation files: Go to the CUDA toolkit installation website. Select Linux->x86_64->Debian->11->runfile (local)
- Set executable permission:
chmod +x ./cuda_version.run
- Install using the correct flags:
sudo ./cuda_11.8.0_520.61.05_linux.run --silent --override --toolkit --no-opengl-libs --tmpdir=/home/aselimov/down/tmp
- Add to path: Build should now be installed at /usr/local/cuda-version. Add the following to your bashrc or zshrc:
export PATH="$PATH:/usr/local/cuda-version/bin" export 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!