Step-by-step – CUDA 10 Ubuntu 20.10 Installation

September 5, 2020 | By the+gnu+linux+evangelist.

Installing

  1. 2. Pre-Installation Testing

    Then Verify on CUDA Capable GPU.

    lspci | grep -i nvidia

    But if you do Not see any NVIDIA hardware on Output then first install:

    sudo update-pciids

    Then try Again…

  2. 3. Installing Kernel Headers

    Next Install Ubuntu’s Kernel Headers.

    sudo apt install linux-headers-$(uname -r)

    If Got “User is Not in Sudoers file” then see: How to Enable sudo.

  3. 4. Setting Up CUDA Repo

    See How Setup CUDA 10 Repository for Ubuntu 20.10

    CUDA Repository Setup
  4. 5. Installing CUDA 10

    Finally, Install CUDA 10 Toolkit in Ubuntu 20.10
    To search for the Available releases:

    sudo apt search cuda | grep 10
    

    Then for instance, to Install CUDA 10.1:

    sudo apt install cuda-10-1
    

    Or at this time simply:

    sudo apt install cuda
    
  5. 6. Setting Up Path

    Again Setup PATH Env Variable.
    This is necessary to Find the Binaries on System:

    echo 'export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}' >> $HOME/.bashrc
    

    Possibly Amend the 10.0 with the Actual Version...
    And Reload Configuration simply with:

    bash
    

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress