NVIDIA-Linux-x86_64-530.30.02.run
- wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
- sudo sh cuda_12.1.0_530.30.02_linux.run
- sudo cp ./include/* /usr/local/cuda-12.1/include
- sudo cp ./lib/libcudnn* /usr/local/cuda-12.1/lib64
-
- sudo chmod a+r /usr/local/cuda-12.1/include/cudnn*
- sudo chmod a+r /usr/local/cuda-12.1/lib64/libcudnn*
- # 先创建虚拟环境
- conda create --name Dogs python=3.9
- # 安装cudatoolkit-11.8.0+cudnn-8.9.2.26
- conda install -c main cudatoolkit=11.8 cudnn=8.9.2.26
- # pytorch安装
- pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118