uname -a
Linux herri01-HP-Z4-G4-Workstation 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
--2022-09-23 10:57:39-- https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin [following]
--2022-09-23 10:57:40-- https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
Resolving developer.download.nvidia.cn (developer.download.nvidia.cn)... 150.138.231.66, 150.138.231.69, 150.138.231.68
Connecting to developer.download.nvidia.cn (developer.download.nvidia.cn)|150.138.231.66|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/octet-stream]
Saving to: ‘cuda-ubuntu2204.pin’
cuda-ubuntu2204.pin 100%[===================>] 190 --.-KB/s in 0s
2022-09-23 10:57:40 (62.1 MB/s) - ‘cuda-ubuntu2204.pin’ saved [190/190]
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
[sudo] password for cynthia:
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.SLRqq5jKUC/gpg.1.sh --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
gpg: requesting key from 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub'
gpg: key A4B469963BF863CC: "cudatools " not changed
gpg: Total number processed: 1
gpg: unchanged: 1
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
Repository: 'deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /'
Description:
Archive for codename: / components:
More info: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:4 http://cn.archive.ubuntu.com/ubuntu jammy InRelease
Get:5 http://cn.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [339 kB]
Get:7 http://cn.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:9 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [323 kB]
Hit:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [132 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [78.4 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [13.1 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [12.1 kB]
Get:14 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [598 kB]
Get:15 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [141 kB]
Get:16 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [92.8 kB]
Get:17 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [8,632 B]
Get:18 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [278 kB]
Get:19 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [422 kB]
Get:20 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [106 kB]
Get:21 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [247 kB]
Get:22 http://cn.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:23 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages [5,200 B]
Get:24 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [6,752 B]
Get:26 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [9,240 B]
Get:27 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.4 kB]
Get:28 http://cn.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [352 B]
Get:25 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64 InRelease [1,581 B]
Get:29 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64 Packages [84.4 kB]
Fetched 3,237 kB in 4s (795 kB/s)
Reading package lists... Done
W: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 http://cn.archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease
Hit:5 http://cn.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://cn.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:7 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Hit:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64 InRelease
Reading package lists... Done
W: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
(base) cynthia@herri01-HP-Z4-G4-Workstation:~$ sudo apt-get -y install cuda
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
cuda-11-7 cuda-cccl-11-7 cuda-command-line-tools-11-7 cuda-compiler-11-7 cuda-cudart-11-7 cuda-cudart-dev-11-7
cuda-cuobjdump-11-7 cuda-cupti-11-7 cuda-cupti-dev-11-7 cuda-cuxxfilt-11-7 cuda-demo-suite-11-7
cuda-documentation-11-7 cuda-driver-dev-11-7 cuda-drivers cuda-drivers-515 cuda-gdb-11-7 cuda-libraries-11-7
cuda-libraries-dev-11-7 cuda-memcheck-11-7 cuda-nsight-11-7 cuda-nsight-compute-11-7 cuda-nsight-systems-11-7
cuda-nvcc-11-7 cuda-nvdisasm-11-7 cuda-nvml-dev-11-7 cuda-nvprof-11-7 cuda-nvprune-11-7 cuda-nvrtc-11-7
cuda-nvrtc-dev-11-7 cuda-nvtx-11-7 cuda-nvvp-11-7 cuda-runtime-11-7 cuda-sanitizer-11-7 cuda-toolkit-11-7
cuda-toolkit-11-7-config-common cuda-toolkit-11-config-common cuda-toolkit-config-common cuda-tools-11-7
cuda-visual-tools-11-7 gds-tools-11-7 libcublas-11-7 libcublas-dev-11-7 libcufft-11-7 libcufft-dev-11-7
libcufile-11-7 libcufile-dev-11-7 libcurand-11-7 libcurand-dev-11-7 libcusolver-11-7 libcusolver-dev-11-7
libcusparse-11-7 libcusparse-dev-11-7 libnpp-11-7 libnpp-dev-11-7 libnvjpeg-11-7 libnvjpeg-dev-11-7 libtinfo5
libxcb-xinerama0 nsight-compute-2022.2.1 nsight-systems-2022.1.3 nvidia-modprobe
The following NEW packages will be installed:
cuda cuda-11-7 cuda-cccl-11-7 cuda-command-line-tools-11-7 cuda-compiler-11-7 cuda-cudart-11-7
cuda-cudart-dev-11-7 cuda-cuobjdump-11-7 cuda-cupti-11-7 cuda-cupti-dev-11-7 cuda-cuxxfilt-11-7
cuda-demo-suite-11-7 cuda-documentation-11-7 cuda-driver-dev-11-7 cuda-drivers cuda-drivers-515 cuda-gdb-11-7
cuda-libraries-11-7 cuda-libraries-dev-11-7 cuda-memcheck-11-7 cuda-nsight-11-7 cuda-nsight-compute-11-7
cuda-nsight-systems-11-7 cuda-nvcc-11-7 cuda-nvdisasm-11-7 cuda-nvml-dev-11-7 cuda-nvprof-11-7 cuda-nvprune-11-7
cuda-nvrtc-11-7 cuda-nvrtc-dev-11-7 cuda-nvtx-11-7 cuda-nvvp-11-7 cuda-runtime-11-7 cuda-sanitizer-11-7
cuda-toolkit-11-7 cuda-toolkit-11-7-config-common cuda-toolkit-11-config-common cuda-toolkit-config-common
cuda-tools-11-7 cuda-visual-tools-11-7 gds-tools-11-7 libcublas-11-7 libcublas-dev-11-7 libcufft-11-7
libcufft-dev-11-7 libcufile-11-7 libcufile-dev-11-7 libcurand-11-7 libcurand-dev-11-7 libcusolver-11-7
libcusolver-dev-11-7 libcusparse-11-7 libcusparse-dev-11-7 libnpp-11-7 libnpp-dev-11-7 libnvjpeg-11-7
libnvjpeg-dev-11-7 libtinfo5 libxcb-xinerama0 nsight-compute-2022.2.1 nsight-systems-2022.1.3 nvidia-modprobe
0 upgraded, 62 newly installed, 0 to remove and 263 not upgraded.
Need to get 0 B/2,282 MB of archives.
After this operation, 5,179 MB of additional disk space will be used.
Extracting templates from packages: 100%
Selecting previously unselected package cuda-toolkit-config-common.
(Reading database ... 209299 files and directories currently installed.)
Preparing to unpack .../00-cuda-toolkit-config-common_11.7.99-1_all.deb ...
Unpacking cuda-toolkit-config-common (11.7.99-1) ...
Selecting previously unselected package cuda-toolkit-11-config-common.
Preparing to unpack .../01-cuda-toolkit-11-config-common_11.7.99-1_all.deb ...
Unpacking cuda-toolkit-11-config-common (11.7.99-1) ...
Selecting previously unselected package cuda-toolkit-11-7-config-common.
Preparing to unpack .../02-cuda-toolkit-11-7-config-common_11.7.99-1_all.deb ...
Unpacking cuda-toolkit-11-7-config-common (11.7.99-1) ...
Selecting previously unselected package cuda-cudart-11-7.
Preparing to unpack .../03-cuda-cudart-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-cudart-11-7 (11.7.99-1) ...
Selecting previously unselected package cuda-nvrtc-11-7.
Preparing to unpack .../04-cuda-nvrtc-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-nvrtc-11-7 (11.7.99-1) ...
Selecting previously unselected package libcublas-11-7.
Preparing to unpack .../05-libcublas-11-7_11.10.3.66-1_amd64.deb ...
Unpacking libcublas-11-7 (11.10.3.66-1) ...
Selecting previously unselected package libcufft-11-7.
Preparing to unpack .../06-libcufft-11-7_10.7.2.91-1_amd64.deb ...
Unpacking libcufft-11-7 (10.7.2.91-1) ...
Selecting previously unselected package libcufile-11-7.
Preparing to unpack .../07-libcufile-11-7_1.3.1.18-1_amd64.deb ...
Unpacking libcufile-11-7 (1.3.1.18-1) ...
Selecting previously unselected package libcurand-11-7.
Preparing to unpack .../08-libcurand-11-7_10.2.10.91-1_amd64.deb ...
Unpacking libcurand-11-7 (10.2.10.91-1) ...
Selecting previously unselected package libcusolver-11-7.
Preparing to unpack .../09-libcusolver-11-7_11.4.0.1-1_amd64.deb ...
Unpacking libcusolver-11-7 (11.4.0.1-1) ...
Selecting previously unselected package libcusparse-11-7.
Preparing to unpack .../10-libcusparse-11-7_11.7.4.91-1_amd64.deb ...
Unpacking libcusparse-11-7 (11.7.4.91-1) ...
Selecting previously unselected package libnpp-11-7.
Preparing to unpack .../11-libnpp-11-7_11.7.4.75-1_amd64.deb ...
Unpacking libnpp-11-7 (11.7.4.75-1) ...
Selecting previously unselected package libnvjpeg-11-7.
Preparing to unpack .../12-libnvjpeg-11-7_11.8.0.2-1_amd64.deb ...
Unpacking libnvjpeg-11-7 (11.8.0.2-1) ...
Selecting previously unselected package cuda-libraries-11-7.
Preparing to unpack .../13-cuda-libraries-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-libraries-11-7 (11.7.1-1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../14-nvidia-modprobe_515.65.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (515.65.01-0ubuntu1) ...
Selecting previously unselected package cuda-drivers-515.
Preparing to unpack .../15-cuda-drivers-515_515.65.01-1_amd64.deb ...
Unpacking cuda-drivers-515 (515.65.01-1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../16-cuda-drivers_515.65.01-1_amd64.deb ...
Unpacking cuda-drivers (515.65.01-1) ...
Selecting previously unselected package cuda-runtime-11-7.
Preparing to unpack .../17-cuda-runtime-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-runtime-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-cuobjdump-11-7.
Preparing to unpack .../18-cuda-cuobjdump-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-cuobjdump-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-cuxxfilt-11-7.
Preparing to unpack .../19-cuda-cuxxfilt-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-cuxxfilt-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-cccl-11-7.
Preparing to unpack .../20-cuda-cccl-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-cccl-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-driver-dev-11-7.
Preparing to unpack .../21-cuda-driver-dev-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-driver-dev-11-7 (11.7.99-1) ...
Selecting previously unselected package cuda-cudart-dev-11-7.
Preparing to unpack .../22-cuda-cudart-dev-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-cudart-dev-11-7 (11.7.99-1) ...
Selecting previously unselected package cuda-nvcc-11-7.
Preparing to unpack .../23-cuda-nvcc-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-nvcc-11-7 (11.7.99-1) ...
Selecting previously unselected package cuda-nvprune-11-7.
Preparing to unpack .../24-cuda-nvprune-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-nvprune-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-compiler-11-7.
Preparing to unpack .../25-cuda-compiler-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-compiler-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-nvrtc-dev-11-7.
Preparing to unpack .../26-cuda-nvrtc-dev-11-7_11.7.99-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-11-7 (11.7.99-1) ...
Selecting previously unselected package libcublas-dev-11-7.
Preparing to unpack .../27-libcublas-dev-11-7_11.10.3.66-1_amd64.deb ...
Unpacking libcublas-dev-11-7 (11.10.3.66-1) ...
Selecting previously unselected package libcufft-dev-11-7.
Preparing to unpack .../28-libcufft-dev-11-7_10.7.2.91-1_amd64.deb ...
Unpacking libcufft-dev-11-7 (10.7.2.91-1) ...
Selecting previously unselected package libcufile-dev-11-7.
Preparing to unpack .../29-libcufile-dev-11-7_1.3.1.18-1_amd64.deb ...
Unpacking libcufile-dev-11-7 (1.3.1.18-1) ...
Selecting previously unselected package libcurand-dev-11-7.
Preparing to unpack .../30-libcurand-dev-11-7_10.2.10.91-1_amd64.deb ...
Unpacking libcurand-dev-11-7 (10.2.10.91-1) ...
Selecting previously unselected package libcusolver-dev-11-7.
Preparing to unpack .../31-libcusolver-dev-11-7_11.4.0.1-1_amd64.deb ...
Unpacking libcusolver-dev-11-7 (11.4.0.1-1) ...
Selecting previously unselected package libcusparse-dev-11-7.
Preparing to unpack .../32-libcusparse-dev-11-7_11.7.4.91-1_amd64.deb ...
Unpacking libcusparse-dev-11-7 (11.7.4.91-1) ...
Selecting previously unselected package libnpp-dev-11-7.
Preparing to unpack .../33-libnpp-dev-11-7_11.7.4.75-1_amd64.deb ...
Unpacking libnpp-dev-11-7 (11.7.4.75-1) ...
Selecting previously unselected package libnvjpeg-dev-11-7.
Preparing to unpack .../34-libnvjpeg-dev-11-7_11.8.0.2-1_amd64.deb ...
Unpacking libnvjpeg-dev-11-7 (11.8.0.2-1) ...
Selecting previously unselected package cuda-libraries-dev-11-7.
Preparing to unpack .../35-cuda-libraries-dev-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-libraries-dev-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-cupti-11-7.
Preparing to unpack .../36-cuda-cupti-11-7_11.7.101-1_amd64.deb ...
Unpacking cuda-cupti-11-7 (11.7.101-1) ...
Selecting previously unselected package cuda-cupti-dev-11-7.
Preparing to unpack .../37-cuda-cupti-dev-11-7_11.7.101-1_amd64.deb ...
Unpacking cuda-cupti-dev-11-7 (11.7.101-1) ...
Selecting previously unselected package cuda-nvdisasm-11-7.
Preparing to unpack .../38-cuda-nvdisasm-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-nvdisasm-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-gdb-11-7.
Preparing to unpack .../39-cuda-gdb-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-gdb-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-memcheck-11-7.
Preparing to unpack .../40-cuda-memcheck-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-memcheck-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-nvprof-11-7.
Preparing to unpack .../41-cuda-nvprof-11-7_11.7.101-1_amd64.deb ...
Unpacking cuda-nvprof-11-7 (11.7.101-1) ...
Selecting previously unselected package cuda-nvtx-11-7.
Preparing to unpack .../42-cuda-nvtx-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-nvtx-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-sanitizer-11-7.
Preparing to unpack .../43-cuda-sanitizer-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-sanitizer-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-command-line-tools-11-7.
Preparing to unpack .../44-cuda-command-line-tools-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-command-line-tools-11-7 (11.7.1-1) ...
Selecting previously unselected package nsight-compute-2022.2.1.
Preparing to unpack .../45-nsight-compute-2022.2.1_2022.2.1.3-1_amd64.deb ...
Unpacking nsight-compute-2022.2.1 (2022.2.1.3-1) ...
Selecting previously unselected package cuda-nsight-compute-11-7.
Preparing to unpack .../46-cuda-nsight-compute-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-nsight-compute-11-7 (11.7.1-1) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../47-libtinfo5_6.3-2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.3-2) ...
Selecting previously unselected package libxcb-xinerama0:amd64.
Preparing to unpack .../48-libxcb-xinerama0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-xinerama0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package nsight-systems-2022.1.3.
Preparing to unpack .../49-nsight-systems-2022.1.3_2022.1.3.3-1c7b5f7_amd64.deb ...
Unpacking nsight-systems-2022.1.3 (2022.1.3.3-1c7b5f7) ...
Selecting previously unselected package cuda-nsight-systems-11-7.
Preparing to unpack .../50-cuda-nsight-systems-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-nsight-systems-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-nsight-11-7.
Preparing to unpack .../51-cuda-nsight-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-nsight-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-nvml-dev-11-7.
Preparing to unpack .../52-cuda-nvml-dev-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-nvml-dev-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-nvvp-11-7.
Preparing to unpack .../53-cuda-nvvp-11-7_11.7.101-1_amd64.deb ...
Unpacking cuda-nvvp-11-7 (11.7.101-1) ...
Selecting previously unselected package cuda-visual-tools-11-7.
Preparing to unpack .../54-cuda-visual-tools-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-visual-tools-11-7 (11.7.1-1) ...
Selecting previously unselected package gds-tools-11-7.
Preparing to unpack .../55-gds-tools-11-7_1.3.1.18-1_amd64.deb ...
Unpacking gds-tools-11-7 (1.3.1.18-1) ...
Selecting previously unselected package cuda-tools-11-7.
Preparing to unpack .../56-cuda-tools-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-tools-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-documentation-11-7.
Preparing to unpack .../57-cuda-documentation-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-documentation-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-toolkit-11-7.
Preparing to unpack .../58-cuda-toolkit-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-toolkit-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda-demo-suite-11-7.
Preparing to unpack .../59-cuda-demo-suite-11-7_11.7.91-1_amd64.deb ...
Unpacking cuda-demo-suite-11-7 (11.7.91-1) ...
Selecting previously unselected package cuda-11-7.
Preparing to unpack .../60-cuda-11-7_11.7.1-1_amd64.deb ...
Unpacking cuda-11-7 (11.7.1-1) ...
Selecting previously unselected package cuda.
Preparing to unpack .../61-cuda_11.7.1-1_amd64.deb ...
Unpacking cuda (11.7.1-1) ...
Setting up cuda-toolkit-config-common (11.7.99-1) ...
Setting up cuda-nvdisasm-11-7 (11.7.91-1) ...
Setting up cuda-nvvp-11-7 (11.7.101-1) ...
Setting up gds-tools-11-7 (1.3.1.18-1) ...
Setting up cuda-toolkit-11-config-common (11.7.99-1) ...
Setting up cuda-cuobjdump-11-7 (11.7.91-1) ...
Setting up cuda-nvrtc-11-7 (11.7.99-1) ...
Setting up cuda-sanitizer-11-7 (11.7.91-1) ...
Setting up cuda-cuxxfilt-11-7 (11.7.91-1) ...
Setting up cuda-toolkit-11-7-config-common (11.7.99-1) ...
Setting alternatives
update-alternatives: using /usr/local/cuda-11.7 to provide /usr/local/cuda (cuda) in auto mode
update-alternatives: using /usr/local/cuda-11.7 to provide /usr/local/cuda-11 (cuda-11) in auto mode
Setting up nsight-compute-2022.2.1 (2022.2.1.3-1) ...
Setting up cuda-nsight-compute-11-7 (11.7.1-1) ...
Setting up cuda-nvtx-11-7 (11.7.91-1) ...
Setting up nvidia-modprobe (515.65.01-0ubuntu1) ...
Setting up cuda-nsight-11-7 (11.7.91-1) ...
Setting up libxcb-xinerama0:amd64 (1.14-3ubuntu3) ...
Setting up libcusparse-11-7 (11.7.4.91-1) ...
Setting up cuda-cccl-11-7 (11.7.91-1) ...
Setting up libnvjpeg-11-7 (11.8.0.2-1) ...
Setting up libcufft-11-7 (10.7.2.91-1) ...
Setting up cuda-documentation-11-7 (11.7.91-1) ...
Setting up cuda-nvprof-11-7 (11.7.101-1) ...
Setting up libcusolver-11-7 (11.4.0.1-1) ...
Setting up libcublas-11-7 (11.10.3.66-1) ...
Setting up cuda-nvml-dev-11-7 (11.7.91-1) ...
Setting up cuda-nvrtc-dev-11-7 (11.7.99-1) ...
Setting up cuda-cudart-11-7 (11.7.99-1) ...
Setting up libtinfo5:amd64 (6.3-2) ...
Setting up cuda-memcheck-11-7 (11.7.91-1) ...
Setting up libcufft-dev-11-7 (10.7.2.91-1) ...
Setting up libnpp-11-7 (11.7.4.75-1) ...
Setting up cuda-nvprune-11-7 (11.7.91-1) ...
Setting up cuda-driver-dev-11-7 (11.7.99-1) ...
Setting up libnpp-dev-11-7 (11.7.4.75-1) ...
Setting up cuda-drivers-515 (515.65.01-1) ...
Setting up cuda-gdb-11-7 (11.7.91-1) ...
Setting up libcurand-11-7 (10.2.10.91-1) ...
Setting up libcusparse-dev-11-7 (11.7.4.91-1) ...
Setting up libcufile-11-7 (1.3.1.18-1) ...
Setting alternatives
update-alternatives: using /usr/local/cuda-11.7/gds/cufile.json to provide /etc/cufile.json (cufile.json) in auto mode
Setting up libnvjpeg-dev-11-7 (11.8.0.2-1) ...
Setting up libcurand-dev-11-7 (10.2.10.91-1) ...
Setting up cuda-cudart-dev-11-7 (11.7.99-1) ...
Setting up libcublas-dev-11-7 (11.10.3.66-1) ...
Setting up cuda-nvcc-11-7 (11.7.99-1) ...
Setting up libcusolver-dev-11-7 (11.4.0.1-1) ...
Setting up cuda-drivers (515.65.01-1) ...
Setting up nsight-systems-2022.1.3 (2022.1.3.3-1c7b5f7) ...
update-alternatives: using /opt/nvidia/nsight-systems/2022.1.3/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode
update-alternatives: using /opt/nvidia/nsight-systems/2022.1.3/host-linux-x64/nsys-ui to provide /usr/local/bin/nsys-ui (nsys-ui) in auto mode
Setting up libcufile-dev-11-7 (1.3.1.18-1) ...
Setting up cuda-libraries-11-7 (11.7.1-1) ...
Setting up cuda-runtime-11-7 (11.7.1-1) ...
Setting up cuda-compiler-11-7 (11.7.1-1) ...
Setting up cuda-cupti-11-7 (11.7.101-1) ...
Setting up cuda-cupti-dev-11-7 (11.7.101-1) ...
Setting up cuda-demo-suite-11-7 (11.7.91-1) ...
Setting up cuda-nsight-systems-11-7 (11.7.1-1) ...
Setting up cuda-libraries-dev-11-7 (11.7.1-1) ...
Setting up cuda-command-line-tools-11-7 (11.7.1-1) ...
Setting up cuda-visual-tools-11-7 (11.7.1-1) ...
Setting up cuda-tools-11-7 (11.7.1-1) ...
Setting up cuda-toolkit-11-7 (11.7.1-1) ...
Setting alternatives
Setting up cuda-11-7 (11.7.1-1) ...
Setting up cuda (11.7.1-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
W: Sources disagree on hashes for supposely identical version '515.65.01-1' of 'cuda-drivers-515:amd64'.
W: Sources disagree on hashes for supposely identical version '515.65.01-1' of 'cuda-drivers:amd64'.
W: Sources disagree on hashes for supposely identical version '11.7.1-1' of 'cuda-compiler-11-7:amd64'.
W: Sources disagree on hashes for supposely identical version '11.7.1-1' of 'cuda-command-line-tools-11-7:amd64'.
W: Sources disagree on hashes for supposely identical version '11.7.1-1' of 'cuda-tools-11-7:amd64'.
W: Sources disagree on hashes for supposely identical version '11.7.1-1' of 'cuda:amd64'.
打开编辑.bashrc文件
sudo gedit ~/.bashrc
在文末添加以下信息
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CPUTI/lib64
export CUDA_HOME=/usr/local/cuda/bin
export PATH=$PATH:$LD_LIBRARY_PATH:$CUDA_HOME
sourec此.bashrc文件
source ~/.bashrc
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Jun__8_16:49:14_PDT_2022
Cuda compilation tools, release 11.7, V11.7.99
Build cuda_11.7.r11.7/compiler.31442593_0