Installing NVIDIA CUDA
Procedure
- Use PuTTY to log in to the server as the root user.
- Obtain the NVIDIA CUDA component.
wget https://developer.download.nvidia.com/compute/cuda/11.4.0/local_installers/cuda_11.4.0_470.42.01_linux_sbsa.run
- Install the NVIDIA CUDA component.
sudo shcuda_11.4.0_470.42.01_linux_sbsa.run
- Perform the verification.
ls -l /usr/local/cuda-11.4/
- Configure the CUDA environment variables.
export CUDA_HOME=/usr/local/cuda-11.4 export PATH=/usr/local/cuda-11.4/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment