$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

CUDA 11 Installation in Linux Mint 21 – Step-by-step

November 23, 2022 | 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 Mint’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 11 Repository for Linux Mint 21

    CUDA Repository Setup

    Alternatively, you may Skip this and then see How to Install CUDA 11.5 from the Apt Repo.

  4. 5. Installing CUDA 11

    Finally, Install CUDA 11 Toolkit in Linux Mint 21
    To search for the Available releases:

    sudo apt search cuda | grep 11

    So for instance, to install the complete CUDA 11.8 Release play:

    sudo apt install cuda-11-8

    Where for the CUDA 11.8 Driver only:

    sudo apt install cuda-toolkit-11-8

    Finally, instead to Install the available CUDA 11 from the Apt Repo:

    sudo apt install nvidia-cuda-toolkit
  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-11.8/bin${PATH:+:${PATH}}' >> $HOME/.bashrc

    Possibly Amend the 11.8 with the Actual Version
    And Reload Configuration simply with:

    bash

Contents


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