Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,60 @@
|
|
1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
```
|
3 |
sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
|
4 |
|
@@ -7,7 +63,7 @@ sudo apt-get --purge remove "*nvidia*" "libxnvctrl*"
|
|
7 |
sudo apt-get autoremove
|
8 |
```
|
9 |
|
10 |
-
|
11 |
```
|
12 |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
|
13 |
|
@@ -24,7 +80,7 @@ sudo apt-get update
|
|
24 |
sudo apt-get -y install cuda-toolkit-12-3
|
25 |
```
|
26 |
|
27 |
-
|
28 |
```
|
29 |
dpkg info : /var/lib/dpkg/info
|
30 |
|
@@ -33,8 +89,8 @@ apt deb package : /var/cache/apt/archives
|
|
33 |
Cài xong trong thư mục /var/cuda-repo-ubuntu2004-12-3-local sẽ có hết file deb còn lại
|
34 |
```
|
35 |
-----------------------------------------------------
|
36 |
-
|
37 |
-
|
38 |
|
39 |
```
|
40 |
(base) linhdang@linhdang-System-Product-Name:~/workspace/vunt$ sudo apt-get -y install cuda-toolkit-12-3 100 ↵
|
@@ -438,7 +494,7 @@ Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
|
|
438 |
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
|
439 |
```
|
440 |
---------------------------------------------
|
441 |
-
|
442 |
```
|
443 |
(base) linhdang@linhdang-System-Product-Name:~/workspace/vunt$ sudo apt-get install -y cuda-drivers
|
444 |
Reading package lists... Done
|
|
|
1 |
+
# Install without Internet
|
2 |
+
## Make working directory
|
3 |
+
```
|
4 |
+
mkdir cuda-12.3
|
5 |
+
```
|
6 |
+
|
7 |
+
then download all files on datasecurity and store in folder cuda-12.3
|
8 |
+
|
9 |
+
```
|
10 |
+
unzip archives.zip
|
11 |
+
|
12 |
+
unzip cuda-repo-ubuntu2004-12-3-local.zip
|
13 |
+
```
|
14 |
+
|
15 |
+
## Remove all previous cuda version
|
16 |
+
```
|
17 |
+
sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
|
18 |
+
|
19 |
+
sudo apt-get --purge remove "*nvidia*" "libxnvctrl*"
|
20 |
+
|
21 |
+
sudo apt-get autoremove
|
22 |
+
```
|
23 |
+
|
24 |
+
## Install cuda 12.3
|
25 |
+
```
|
26 |
+
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
|
27 |
+
|
28 |
+
sudo dpkg -i cuda-repo-ubuntu2004-12-3-local_12.3.2-545.23.08-1_amd64.deb
|
29 |
+
|
30 |
+
sudo cp /var/cuda-repo-ubuntu2004-12-3-local/cuda-*-keyring.gpg /usr/share/keyrings/
|
31 |
+
|
32 |
+
cd archives
|
33 |
+
|
34 |
+
sudo dpkg -i *.deb
|
35 |
+
|
36 |
+
cd ..
|
37 |
+
|
38 |
+
cd cuda-repo-ubuntu2004-12-3-local
|
39 |
+
|
40 |
+
sudo dpkg -i *.deb
|
41 |
+
```
|
42 |
+
|
43 |
+
## Perform post-installation actions
|
44 |
+
```
|
45 |
+
export PATH=/usr/local/cuda-12.3/bin${PATH:+:${PATH}}
|
46 |
+
|
47 |
+
export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64\
|
48 |
+
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
49 |
+
|
50 |
+
# REBOOT
|
51 |
+
sudo reboot
|
52 |
+
```
|
53 |
+
|
54 |
+
-------------------------
|
55 |
+
|
56 |
+
# Install with Internet
|
57 |
+
## Remove all previous cuda version:
|
58 |
```
|
59 |
sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
|
60 |
|
|
|
63 |
sudo apt-get autoremove
|
64 |
```
|
65 |
|
66 |
+
## Install cuda 12.3:
|
67 |
```
|
68 |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
|
69 |
|
|
|
80 |
sudo apt-get -y install cuda-toolkit-12-3
|
81 |
```
|
82 |
|
83 |
+
## Packages
|
84 |
```
|
85 |
dpkg info : /var/lib/dpkg/info
|
86 |
|
|
|
89 |
Cài xong trong thư mục /var/cuda-repo-ubuntu2004-12-3-local sẽ có hết file deb còn lại
|
90 |
```
|
91 |
-----------------------------------------------------
|
92 |
+
## LOG
|
93 |
+
## Install cuda toolkit 12-3
|
94 |
|
95 |
```
|
96 |
(base) linhdang@linhdang-System-Product-Name:~/workspace/vunt$ sudo apt-get -y install cuda-toolkit-12-3 100 ↵
|
|
|
494 |
Processing triggers for libc-bin (2.31-0ubuntu9.14) ...
|
495 |
```
|
496 |
---------------------------------------------
|
497 |
+
## Install cuda-drivers
|
498 |
```
|
499 |
(base) linhdang@linhdang-System-Product-Name:~/workspace/vunt$ sudo apt-get install -y cuda-drivers
|
500 |
Reading package lists... Done
|