赞
踩
##一、显卡驱动安装
//防止异常
sudo apt update
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install cmake
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install make
//安装驱动
sudo apt-get install nvidia-driver-535-server
nvidia-smi
出现如下画面表示安装正常。
如果报错请先reboot服务器
下载地址
https://developer.nvidia.com/cuda-12-2-0-download-archive
###2.2 下载安装
wget https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run
sudo sh cuda_12.2.0_535.54.03_linux.run
nvcc -V
下载地址:
https://developer.nvidia.com/rdp/cudnn-archive
选择最新12.x版本
选择linux
解压并拷贝到相关位置:
sudo cp cuda/include/cudnn.h /usr/local/cuda/include/
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/include/cudnn.h
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。