Skip to content

cuda版本依赖说明 #1

Description

@jaypume

安装nvidia-driver

安装cuda

Ubuntu 22.04:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update

Ubuntu 24.04:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update

安装 CUDA Toolkit

sudo apt install -y cuda-toolkit-12-4

配置环境变量

echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc

安装cudnn

sudo apt install -y libcudnn9-cuda-12 libcudnn9-dev-cuda-12

安装nccl

sudo apt update
sudo apt install libnccl2 libnccl-dev

安装字体

sudo apt install fonts-noto fonts-noto-cjk fonts-liberation fontconfig
fc-cache -fv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions