vault backup: 2025-11-18 19:22:39
Affected files: 10. 日記/2025-11-18(週二).md
This commit is contained in:
@@ -20,8 +20,41 @@ description:
|
||||
- [Build from source on Linux](https://tensorflow.google.cn/install/source?hl=en#setup_for_linux_and_macos)
|
||||
- [Build from source on Windows](https://tensorflow.google.cn/install/source_windows?hl=en)
|
||||
- [CUDA Toolkit 12.9 Update 1 for Ubuntu 24.04](https://developer.nvidia.com/cuda-12-9-1-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=24.04&target_type=deb_local)
|
||||
- [cuDNN 9.16.0](https://developer.nvidia.com/cudnn-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=24.04&target_type=deb_local&Configuration=Full)
|
||||
- [cuDNN 與 CUDA Toolkit 版本對照表](https://docs.nvidia.com/deeplearning/cudnn/frontend/v1.16.0/reference/support-matrix.html#support-matrix)
|
||||
|
||||
## Install CUDA Toolkit 12.9 for Ubuntu 24.04 x86_64
|
||||
```
|
||||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin
|
||||
sudo mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600
|
||||
wget https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda-repo-ubuntu2404-12-9-local_12.9.1-575.57.08-1_amd64.deb
|
||||
sudo dpkg -i cuda-repo-ubuntu2404-12-9-local_12.9.1-575.57.08-1_amd64.deb
|
||||
sudo cp /var/cuda-repo-ubuntu2404-12-9-local/cuda-*-keyring.gpg /usr/share/keyrings/
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install cuda-toolkit-12-9
|
||||
```
|
||||
|
||||
## Install cuDNN 9.16.0 for CUDA Toolkit 12
|
||||
cuDNN 9.16.0 有分2個版本,分別支援 CUDA 12 與 CUDA 13。安裝的時候要注意。
|
||||
### Installation
|
||||
```shell
|
||||
wget https://developer.download.nvidia.com/compute/cudnn/9.16.0/local_installers/cudnn-local-repo-ubuntu2404-9.16.0_1.0-1_amd64.deb
|
||||
sudo dpkg -i cudnn-local-repo-ubuntu2404-9.16.0_1.0-1_amd64.deb
|
||||
sudo cp /var/cudnn-local-repo-ubuntu2404-9.16.0/cudnn-*-keyring.gpg /usr/share/keyrings/
|
||||
sudo apt-get update
|
||||
```
|
||||
|
||||
### To install for CUDA 12
|
||||
```shell
|
||||
sudo apt-get -y install cudnn9-cuda-12
|
||||
```
|
||||
|
||||
### To install for CUDA 13
|
||||
```shell
|
||||
sudo apt-get -y install cudnn9-cuda-13
|
||||
```
|
||||
|
||||
## Remove local repo
|
||||
移除本地的 deb package
|
||||
1. 先找出安裝的 package name
|
||||
```
|
||||
@@ -92,6 +125,10 @@ description:
|
||||
```
|
||||
3. 移除:`sudo apt remove cuda-tools-12-9`
|
||||
4. 清除沒用的套件:`sudo apt autoremove`
|
||||
5. 刪除 keyring (如果你不再需要 CUDA repo):`sudo rm /usr/share/keyrings/cuda-*-keyring.gpg`
|
||||
|
||||
|
||||
|
||||
# 有什麼想法?
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user