Installing NVIDIA CUDA
Procedure
- Use PuTTY to log in to the server as the root user.
- Check whether the Nouveau driver is disabled.
- Install NVIDIA CUDA.
wget https://developer.download.nvidia.com/compute/cuda/11.4.0/local_installers/cuda_11.4.0_470.42.01_linux_sbsa.run sudo shcuda_11.4.0_470.42.01_linux_sbsa.run
- Set the environment variables.
export PATH=/usr/local/cuda-11.4/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH
- Perform the verification.
nvcc --version
If the command output contains the NVIDIA CUDA component version information, the installation is successful.
Parent topic: Configuring the Compilation Environment