Rate This Document
Findability
Accuracy
Completeness
Readability

Installing NVIDIA CUDA

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Check whether the Nouveau driver is disabled (no command output is displayed).
    lsmod |grep nouveau
  3. 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 sh cuda_11.4.0_470.42.01_linux_sbsa.run
  4. Set the environment variables.
    export PATH=/usr/local/cuda-11.2/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:$LD_LIBRARY_PATH
  5. View the version information.
    nvcc -v