matlab gpuDevice Error using gpuDevice (line 26) Unable to load CUDA driver. The library name used w

matlab gpuDevice Error using gpuDevice (line 26) Unable to load CUDA driver. The library name used w
matlab gpuDevice Error using gpuDevice (line 26) Unable to load CUDA driver. The library name used w_第1张图片

点击连接http://developer.nvidia.com/cuda-downloads
选择操作系统版本
matlab gpuDevice Error using gpuDevice (line 26) Unable to load CUDA driver. The library name used w_第2张图片

以Ubuntu20.04为例

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda

你可能感兴趣的:(Linux,matlab,ubuntu,linux,gpu,matlab)