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.
    lsmod |grep nouveau
    • If a command output is displayed, the Nouveau driver is not disabled. In this case, perform 3 to 5.
    • If no command output is displayed, the Nouveau driver is disabled. No further action is required.
  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 shcuda_11.4.0_470.42.01_linux_sbsa.run
  4. 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
  5. Perform the verification.
    nvcc --version

    If the command output contains the NVIDIA CUDA component version information, the installation is successful.