我要评分
获取效率
正确性
完整性
易理解

Installing NVIDIA CUDA (Including the GPU Driver)

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.1/local_installers/cuda_11.4.1_470.57.02_linux_sbsa.run
    sh cuda_11.4.1_470.57.02_linux_sbsa.run

    Install all components as prompted.

  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. Check the NVCC version.
    nvcc -V