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

Installing NVIDIA CUDA

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Install the NVIDIA CUDA component.
    sudo shcuda_11.4.0_470.42.01_linux_sbsa.run
  4. Perform the verification.
    ls -l /usr/local/cuda-11.4/
  5. 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