Closed shmpwk closed 2 years ago
Before exec
$ dpkg -l |grep nvidia
ii libnvidia-cfg1-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-460 460.91.03-0ubuntu1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-decode-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-460:amd64 460.91.03-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-460:amd64 460.91.03-0ubuntu1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii nvidia-compute-utils-460 460.91.03-0ubuntu1 amd64 NVIDIA compute utilities
ii nvidia-dkms-460 460.91.03-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-460 460.91.03-0ubuntu1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-460 460.91.03-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-460 460.91.03-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.16~0.18.04.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 470.57.02-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-460 460.91.03-0ubuntu1 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-460 460.91.03-0ubuntu1 amd64 NVIDIA binary Xorg driver
$ dpkg -l |grep cuda
After exec
$ dpkg -l |grep cuda
ii cuda 11.5.0-1 amd64 CUDA meta-package
ii cuda-11-5 11.5.0-1 amd64 CUDA 11.5 meta-package
ii cuda-cccl-11-5 11.5.62-1 amd64 CUDA CCCL
ii cuda-command-line-tools-11-5 11.5.0-1 amd64 CUDA command-line tools
ii cuda-compiler-11-5 11.5.0-1 amd64 CUDA compiler
ii cuda-cudart-11-5 11.5.50-1 amd64 CUDA Runtime native Libraries
ii cuda-cudart-dev-11-5 11.5.50-1 amd64 CUDA Runtime native dev links, headers
ii cuda-cuobjdump-11-5 11.5.50-1 amd64 CUDA cuobjdump
ii cuda-cupti-11-5 11.5.57-1 amd64 CUDA profiling tools runtime libs.
ii cuda-cupti-dev-11-5 11.5.57-1 amd64 CUDA profiling tools interface.
ii cuda-cuxxfilt-11-5 11.5.50-1 amd64 CUDA cuxxfilt
ii cuda-demo-suite-11-5 11.5.50-1 amd64 Demo suite for CUDA
ii cuda-documentation-11-5 11.5.50-1 amd64 CUDA documentation
ii cuda-driver-dev-11-5 11.5.50-1 amd64 CUDA Driver native dev stub library
ii cuda-drivers 495.29.05-1 amd64 CUDA Driver meta-package, branch-agnostic
ii cuda-drivers-495 495.29.05-1 amd64 CUDA Driver meta-package, branch-specific
ii cuda-gdb-11-5 11.5.50-1 amd64 CUDA-GDB
ii cuda-libraries-11-5 11.5.0-1 amd64 CUDA Libraries 11.5 meta-package
ii cuda-libraries-dev-11-5 11.5.0-1 amd64 CUDA Libraries 11.5 development meta-package
ii cuda-memcheck-11-5 11.5.50-1 amd64 CUDA-MEMCHECK
ii cuda-nsight-11-5 11.5.50-1 amd64 CUDA nsight
ii cuda-nsight-compute-11-5 11.5.0-1 amd64 NVIDIA Nsight Compute
ii cuda-nsight-systems-11-5 11.5.0-1 amd64 NVIDIA Nsight Systems
ii cuda-nvcc-11-5 11.5.50-1 amd64 CUDA nvcc
ii cuda-nvdisasm-11-5 11.5.50-1 amd64 CUDA disassembler
ii cuda-nvml-dev-11-5 11.5.50-1 amd64 NVML native dev links, headers
ii cuda-nvprof-11-5 11.5.50-1 amd64 CUDA Profiler tools
ii cuda-nvprune-11-5 11.5.50-1 amd64 CUDA nvprune
ii cuda-nvrtc-11-5 11.5.50-1 amd64 NVRTC native runtime libraries
ii cuda-nvrtc-dev-11-5 11.5.50-1 amd64 NVRTC native dev links, headers
ii cuda-nvtx-11-5 11.5.50-1 amd64 NVIDIA Tools Extension
ii cuda-nvvp-11-5 11.5.50-1 amd64 CUDA Profiler tools
ii cuda-repo-ubuntu1804-10-2-local-10.2.89-440.33.01 1.0-1 amd64 cuda repository configuration files
ii cuda-runtime-11-5 11.5.0-1 amd64 CUDA Runtime 11.5 meta-package
ii cuda-samples-11-5 11.5.56-1 amd64 CUDA example applications
ii cuda-sanitizer-11-5 11.5.50-1 amd64 CUDA Sanitizer
ii cuda-toolkit-11-5 11.5.0-1 amd64 CUDA Toolkit 11.5 meta-package
ii cuda-toolkit-11-5-config-common 11.5.50-1 all Common config package for CUDA Toolkit 11.5.
ii cuda-toolkit-11-config-common 11.5.50-1 all Common config package for CUDA Toolkit 11.
ii cuda-toolkit-config-common 11.5.50-1 all Common config package for CUDA Toolkit.
ii cuda-tools-11-5 11.5.0-1 amd64 CUDA Tools meta-package
ii cuda-visual-tools-11-5 11.5.0-1 amd64 CUDA visual tools
$ dpkg -l |grep nvidia
ii libnvidia-cfg1-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-460 460.91.03-0ubuntu1 all Shared files used by the NVIDIA libraries
ii libnvidia-common-495 495.29.05-0ubuntu1 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-460:amd64 460.91.03-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-compute-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-decode-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-495:amd64 495.29.05-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-495:amd64 495.29.05-0ubuntu1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
rc nvidia-compute-utils-460 460.91.03-0ubuntu1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-495 495.29.05-0ubuntu1 amd64 NVIDIA compute utilities
rc nvidia-dkms-460 460.91.03-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-dkms-495 495.29.05-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-495 495.29.05-0ubuntu1 amd64 NVIDIA driver metapackage
rc nvidia-kernel-common-460 460.91.03-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-common-495 495.29.05-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-495 495.29.05-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 495.29.05-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-prime 0.8.16~0.18.04.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 495.29.05-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-495 495.29.05-0ubuntu1 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-495 495.29.05-0ubuntu1 amd64 NVIDIA binary Xorg driver
sudo apt-get -y install
だと最新のcudaが入ってしまうようだ.
一旦全部消してから,次はどうだろうか.
1.
$ sudo apt-get -y install cuda-10-2
or
$ sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
$ echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
$ sudo apt update
$ sudo apt -o Dpkg::Options::="--force-overwrite" install cuda-10-2 cuda-drivers
1を実行
$ sudo apt install cuda-10-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gimp-data libbabl-0.1-0 libdca0 libde265-0 libgegl-0.3-0 libgimp2.0 libgssdp-1.0-3 libgupnp-1.0-4 libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmms0 libnice10 libofa0 libserd-0-0 libsord-0-0 libsoundtouch1
libspandsp2 libsratom-0-0 libsrtp2-1 libvo-aacenc0 libwildmidi-config libwildmidi2 libxatracker2 libzbar0 python3-pyaudio qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-dialogs
qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 shim xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev
xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-command-line-tools-10-2 cuda-compiler-10-2 cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2 cuda-cufft-dev-10-2 cuda-cuobjdump-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2 cuda-curand-10-2
cuda-curand-dev-10-2 cuda-cusolver-10-2 cuda-cusolver-dev-10-2 cuda-cusparse-10-2 cuda-cusparse-dev-10-2 cuda-demo-suite-10-2 cuda-documentation-10-2 cuda-driver-dev-10-2 cuda-drivers cuda-drivers-495
cuda-gdb-10-2 cuda-libraries-10-2 cuda-libraries-dev-10-2 cuda-license-10-2 cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2 cuda-npp-dev-10-2 cuda-nsight-10-2 cuda-nsight-compute-10-2
cuda-nsight-systems-10-2 cuda-nvcc-10-2 cuda-nvdisasm-10-2 cuda-nvgraph-10-2 cuda-nvgraph-dev-10-2 cuda-nvjpeg-10-2 cuda-nvjpeg-dev-10-2 cuda-nvml-dev-10-2 cuda-nvprof-10-2 cuda-nvprune-10-2 cuda-nvrtc-10-2
cuda-nvrtc-dev-10-2 cuda-nvtx-10-2 cuda-nvvp-10-2 cuda-runtime-10-2 cuda-samples-10-2 cuda-sanitizer-api-10-2 cuda-toolkit-10-2 cuda-tools-10-2 cuda-visual-tools-10-2 libcublas-dev libcublas10
libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nsight-compute-2021.3.0 nsight-systems-2021.3.3
nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495 nvidia-kernel-source-495 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-495 xserver-xorg-video-nvidia-495
Recommended packages:
libnvidia-compute-495:i386 libnvidia-decode-495:i386 libnvidia-encode-495:i386 libnvidia-fbc1-495:i386 libnvidia-gl-495:i386
The following NEW packages will be installed:
cuda-10-2 cuda-command-line-tools-10-2 cuda-compiler-10-2 cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2 cuda-cufft-dev-10-2 cuda-cuobjdump-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2 cuda-curand-10-2
cuda-curand-dev-10-2 cuda-cusolver-10-2 cuda-cusolver-dev-10-2 cuda-cusparse-10-2 cuda-cusparse-dev-10-2 cuda-demo-suite-10-2 cuda-documentation-10-2 cuda-driver-dev-10-2 cuda-drivers cuda-drivers-495
cuda-gdb-10-2 cuda-libraries-10-2 cuda-libraries-dev-10-2 cuda-license-10-2 cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2 cuda-npp-dev-10-2 cuda-nsight-10-2 cuda-nsight-compute-10-2
cuda-nsight-systems-10-2 cuda-nvcc-10-2 cuda-nvdisasm-10-2 cuda-nvgraph-10-2 cuda-nvgraph-dev-10-2 cuda-nvjpeg-10-2 cuda-nvjpeg-dev-10-2 cuda-nvml-dev-10-2 cuda-nvprof-10-2 cuda-nvprune-10-2 cuda-nvrtc-10-2
cuda-nvrtc-dev-10-2 cuda-nvtx-10-2 cuda-nvvp-10-2 cuda-runtime-10-2 cuda-samples-10-2 cuda-sanitizer-api-10-2 cuda-toolkit-10-2 cuda-tools-10-2 cuda-visual-tools-10-2 libcublas-dev libcublas10
libnvidia-cfg1-495 libnvidia-common-495 libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nsight-compute-2021.3.0 nsight-systems-2021.3.3
nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495 nvidia-kernel-source-495 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-495 xserver-xorg-video-nvidia-495
0 upgraded, 73 newly installed, 0 to remove and 107 not upgraded.
Need to get 1,429 MB/2,343 MB of archives.
After this operation, 4,918 MB of additional disk space will be used.
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-license-10-2 10.2.89-1 [16.4 kB]
Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-misc-headers-10-2 10.2.89-1 [1,111 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nvidia-prime all 0.8.16~0.18.04.1 [9,224 B]
Get:4 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvcc-10-2 10.2.89-1 [37.4 MB]
Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cuobjdump-10-2 10.2.89-1 [88.5 kB]
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprune-10-2 10.2.89-1 [39.5 kB]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-compiler-10-2 10.2.89-1 [2,530 B]
Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvdisasm-10-2 10.2.89-1 [22.2 MB]
Get:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-gdb-10-2 10.2.89-1 [2,769 kB]
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvprof-10-2 10.2.89-1 [1,651 kB]
Get:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-sanitizer-api-10-2 10.2.89-1 [2,161 kB]
Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-memcheck-10-2 10.2.89-1 [139 kB]
Get:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-10-2 10.2.89-1 [111 kB]
Get:14 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-driver-dev-10-2 10.2.89-1 [11.8 kB]
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cudart-dev-10-2 10.2.89-1 [491 kB]
Get:16 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cupti-10-2 10.2.89-1 [8,169 kB]
Get:17 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cupti-dev-10-2 10.2.89-1 [2,197 kB]
Get:18 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvtx-10-2 10.2.89-1 [38.9 kB]
Get:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-command-line-tools-10-2 10.2.89-1 [27.0 kB]
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-10-2 10.2.89-1 [2,582 B]
Get:21 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvvp-10-2 10.2.89-1 [2,532 B]
Get:22 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-10-2 10.2.89-1 [6,413 kB]
Get:23 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvrtc-dev-10-2 10.2.89-1 [8,822 B]
Get:24 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusolver-10-2 10.2.89-1 [85.6 MB]
Get:25 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusolver-dev-10-2 10.2.89-1 [15.2 MB]
Get:26 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcublas10 10.2.3.254-1 [43.1 MB]
Get:27 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 libcublas-dev 10.2.3.254-1 [42.4 MB]
Get:28 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cufft-10-2 10.2.89-1 [87.8 MB]
Get:29 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cufft-dev-10-2 10.2.89-1 [164 MB]
Get:30 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-curand-10-2 10.2.89-1 [38.9 MB]
Get:31 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-curand-dev-10-2 10.2.89-1 [39.1 MB]
Get:32 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusparse-10-2 10.2.89-1 [59.2 MB]
Get:33 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-cusparse-dev-10-2 10.2.89-1 [59.7 MB]
Get:34 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-npp-10-2 10.2.89-1 [56.7 MB]
Get:35 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-npp-dev-10-2 10.2.89-1 [57.6 MB]
Get:36 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvml-dev-10-2 10.2.89-1 [53.8 kB]
Get:37 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvjpeg-10-2 10.2.89-1 [1,274 kB]
Get:38 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvjpeg-dev-10-2 10.2.89-1 [1,213 kB]
Get:39 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-compute-10-2 10.2.89-1 [3,712 B]
Get:40 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nsight-systems-10-2 10.2.89-1 [3,130 B]
Get:41 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvgraph-10-2 10.2.89-1 [44.5 MB]
Get:42 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-nvgraph-dev-10-2 10.2.89-1 [35.2 MB]
Get:43 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-visual-tools-10-2 10.2.89-1 [389 MB]
Get:44 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-tools-10-2 10.2.89-1 [2,496 B]
Get:45 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-samples-10-2 10.2.89-1 [65.6 MB]
Get:46 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-documentation-10-2 10.2.89-1 [54.1 MB]
Get:47 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-dev-10-2 10.2.89-1 [2,614 B]
Get:48 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-libraries-10-2 10.2.89-1 [2,584 B]
Get:49 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-toolkit-10-2 10.2.89-1 [2,830 B]
Get:50 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-runtime-10-2 10.2.89-1 [2,532 B]
Get:51 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-demo-suite-10-2 10.2.89-1 [3,880 kB]
Get:52 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 cuda-10-2 10.2.89-1 [2,558 B]
Fetched 1,429 MB in 26s (54.5 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package cuda-license-10-2.
(Reading database ... 342732 files and directories currently installed.)
Preparing to unpack .../00-cuda-license-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-license-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-misc-headers-10-2.
Preparing to unpack .../01-cuda-misc-headers-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-misc-headers-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvcc-10-2.
Preparing to unpack .../02-cuda-nvcc-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvcc-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cuobjdump-10-2.
Preparing to unpack .../03-cuda-cuobjdump-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cuobjdump-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvprune-10-2.
Preparing to unpack .../04-cuda-nvprune-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvprune-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-compiler-10-2.
Preparing to unpack .../05-cuda-compiler-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-compiler-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvdisasm-10-2.
Preparing to unpack .../06-cuda-nvdisasm-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvdisasm-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-gdb-10-2.
Preparing to unpack .../07-cuda-gdb-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-gdb-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvprof-10-2.
Preparing to unpack .../08-cuda-nvprof-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvprof-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-sanitizer-api-10-2.
Preparing to unpack .../09-cuda-sanitizer-api-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-sanitizer-api-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-memcheck-10-2.
Preparing to unpack .../10-cuda-memcheck-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-memcheck-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cudart-10-2.
Preparing to unpack .../11-cuda-cudart-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cudart-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-driver-dev-10-2.
Preparing to unpack .../12-cuda-driver-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-driver-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cudart-dev-10-2.
Preparing to unpack .../13-cuda-cudart-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cudart-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cupti-10-2.
Preparing to unpack .../14-cuda-cupti-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cupti-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cupti-dev-10-2.
Preparing to unpack .../15-cuda-cupti-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cupti-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvtx-10-2.
Preparing to unpack .../16-cuda-nvtx-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvtx-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-command-line-tools-10-2.
Preparing to unpack .../17-cuda-command-line-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-command-line-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nsight-10-2.
Preparing to unpack .../18-cuda-nsight-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvvp-10-2.
Preparing to unpack .../19-cuda-nvvp-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvvp-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvrtc-10-2.
Preparing to unpack .../20-cuda-nvrtc-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvrtc-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvrtc-dev-10-2.
Preparing to unpack .../21-cuda-nvrtc-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusolver-10-2.
Preparing to unpack .../22-cuda-cusolver-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusolver-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusolver-dev-10-2.
Preparing to unpack .../23-cuda-cusolver-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusolver-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package libcublas10.
Preparing to unpack .../24-libcublas10_10.2.3.254-1_amd64.deb ...
Unpacking libcublas10 (10.2.3.254-1) ...
Selecting previously unselected package libcublas-dev.
Preparing to unpack .../25-libcublas-dev_10.2.3.254-1_amd64.deb ...
Unpacking libcublas-dev (10.2.3.254-1) ...
Selecting previously unselected package cuda-cufft-10-2.
Preparing to unpack .../26-cuda-cufft-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cufft-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cufft-dev-10-2.
Preparing to unpack .../27-cuda-cufft-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cufft-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-curand-10-2.
Preparing to unpack .../28-cuda-curand-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-curand-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-curand-dev-10-2.
Preparing to unpack .../29-cuda-curand-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-curand-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusparse-10-2.
Preparing to unpack .../30-cuda-cusparse-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusparse-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-cusparse-dev-10-2.
Preparing to unpack .../31-cuda-cusparse-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-cusparse-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-npp-10-2.
Preparing to unpack .../32-cuda-npp-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-npp-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-npp-dev-10-2.
Preparing to unpack .../33-cuda-npp-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-npp-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvml-dev-10-2.
Preparing to unpack .../34-cuda-nvml-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvjpeg-10-2.
Preparing to unpack .../35-cuda-nvjpeg-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvjpeg-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvjpeg-dev-10-2.
Preparing to unpack .../36-cuda-nvjpeg-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvjpeg-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package nsight-compute-2021.3.0.
Preparing to unpack .../37-nsight-compute-2021.3.0_2021.3.0.13-1_amd64.deb ...
Unpacking nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Selecting previously unselected package cuda-nsight-compute-10-2.
Preparing to unpack .../38-cuda-nsight-compute-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-compute-10-2 (10.2.89-1) ...
Selecting previously unselected package nsight-systems-2021.3.3.
Preparing to unpack .../39-nsight-systems-2021.3.3_2021.3.3.2-b99c4d6_amd64.deb ...
Unpacking nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
Selecting previously unselected package cuda-nsight-systems-10-2.
Preparing to unpack .../40-cuda-nsight-systems-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nsight-systems-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvgraph-10-2.
Preparing to unpack .../41-cuda-nvgraph-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvgraph-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-nvgraph-dev-10-2.
Preparing to unpack .../42-cuda-nvgraph-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-visual-tools-10-2.
Preparing to unpack .../43-cuda-visual-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-visual-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-tools-10-2.
Preparing to unpack .../44-cuda-tools-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-tools-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-samples-10-2.
Preparing to unpack .../45-cuda-samples-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-samples-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-documentation-10-2.
Preparing to unpack .../46-cuda-documentation-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-documentation-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-libraries-dev-10-2.
Preparing to unpack .../47-cuda-libraries-dev-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-libraries-dev-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-libraries-10-2.
Preparing to unpack .../48-cuda-libraries-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-libraries-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-toolkit-10-2.
Preparing to unpack .../49-cuda-toolkit-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-toolkit-10-2 (10.2.89-1) ...
Selecting previously unselected package libnvidia-common-495.
Preparing to unpack .../50-libnvidia-common-495_495.29.05-0ubuntu1_all.deb ...
Unpacking libnvidia-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-495:amd64.
Preparing to unpack .../51-libnvidia-compute-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-495:amd64.
Preparing to unpack .../52-libnvidia-decode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-495:amd64.
Preparing to unpack .../53-libnvidia-encode-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-495:amd64.
Preparing to unpack .../54-libnvidia-fbc1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-gl-495:amd64.
Preparing to unpack .../55-libnvidia-gl-495_495.29.05-0ubuntu1_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-495.
Preparing to unpack .../56-nvidia-compute-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-source-495.
Preparing to unpack .../57-nvidia-kernel-source-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-495.
Preparing to unpack .../58-nvidia-kernel-common-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-495.
Preparing to unpack .../59-nvidia-dkms-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-dkms-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-extra-495:amd64.
Preparing to unpack .../60-libnvidia-extra-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-495.
Preparing to unpack .../61-nvidia-utils-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package libnvidia-cfg1-495:amd64.
Preparing to unpack .../62-libnvidia-cfg1-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-495.
Preparing to unpack .../63-xserver-xorg-video-nvidia-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-495.
Preparing to unpack .../64-nvidia-driver-495_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver-495 (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../65-nvidia-modprobe_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (495.29.05-0ubuntu1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../66-nvidia-settings_495.29.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (495.29.05-0ubuntu1) ...
Selecting previously unselected package cuda-drivers-495.
Preparing to unpack .../67-cuda-drivers-495_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers-495 (495.29.05-1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../68-cuda-drivers_495.29.05-1_amd64.deb ...
Unpacking cuda-drivers (495.29.05-1) ...
Selecting previously unselected package cuda-runtime-10-2.
Preparing to unpack .../69-cuda-runtime-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-runtime-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-demo-suite-10-2.
Preparing to unpack .../70-cuda-demo-suite-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-demo-suite-10-2 (10.2.89-1) ...
Selecting previously unselected package cuda-10-2.
Preparing to unpack .../71-cuda-10-2_10.2.89-1_amd64.deb ...
Unpacking cuda-10-2 (10.2.89-1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../72-nvidia-prime_0.8.16~0.18.04.1_all.deb ...
Unpacking nvidia-prime (0.8.16~0.18.04.1) ...
Setting up nvidia-prime (0.8.16~0.18.04.1) ...
Setting up libnvidia-common-495 (495.29.05-0ubuntu1) ...
Setting up libnvidia-gl-495:amd64 (495.29.05-0ubuntu1) ...
Setting up libnvidia-compute-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-license-10-2 (10.2.89-1) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-10.2/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software.
Setting up cuda-nvgraph-10-2 (10.2.89-1) ...
Setting up cuda-nvprune-10-2 (10.2.89-1) ...
Setting up libnvidia-fbc1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up libnvidia-extra-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-nvrtc-10-2 (10.2.89-1) ...
Setting up cuda-nvtx-10-2 (10.2.89-1) ...
Setting up libnvidia-cfg1-495:amd64 (495.29.05-0ubuntu1) ...
Setting up nvidia-settings (495.29.05-0ubuntu1) ...
Setting up nsight-systems-2021.3.3 (2021.3.3.2-b99c4d6) ...
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode
update-alternatives: error: alternative path /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsight-sys doesn't exist
update-alternatives: error: no alternatives for nsight-sys
update-alternatives: using /opt/nvidia/nsight-systems/2021.3.3/host-linux-x64/nsys-ui to provide /usr/local/bin/nsys-ui (nsys-ui) in auto mode
Setting up cuda-nvjpeg-10-2 (10.2.89-1) ...
Setting up libcublas10 (10.2.3.254-1) ...
Setting up libcublas-dev (10.2.3.254-1) ...
Setting up cuda-cufft-10-2 (10.2.89-1) ...
Setting up nvidia-modprobe (495.29.05-0ubuntu1) ...
Setting up nsight-compute-2021.3.0 (2021.3.0.13-1) ...
Setting up cuda-cusparse-10-2 (10.2.89-1) ...
Setting up cuda-cuobjdump-10-2 (10.2.89-1) ...
Setting up nvidia-utils-495 (495.29.05-0ubuntu1) ...
Setting up nvidia-kernel-common-495 (495.29.05-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Setting up cuda-sanitizer-api-10-2 (10.2.89-1) ...
Setting up cuda-nvjpeg-dev-10-2 (10.2.89-1) ...
Setting up cuda-cusolver-10-2 (10.2.89-1) ...
Setting up cuda-misc-headers-10-2 (10.2.89-1) ...
Setting up cuda-nvvp-10-2 (10.2.89-1) ...
Setting up cuda-curand-10-2 (10.2.89-1) ...
Setting up cuda-cudart-10-2 (10.2.89-1) ...
Setting up nvidia-kernel-source-495 (495.29.05-0ubuntu1) ...
Setting up cuda-npp-10-2 (10.2.89-1) ...
Setting up cuda-cufft-dev-10-2 (10.2.89-1) ...
Setting up nvidia-dkms-495 (495.29.05-0ubuntu1) ...
update-initramfs: deferring update (trigger activated)
A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf
A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`
*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
*****************************************************************************
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-495.29.05 DKMS files...
Building for 5.3.0-62-generic
Building for architecture x86_64
Building initial module for 5.3.0-62-generic
Secure Boot not enabled on this system.
Done.
nvidia:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.3.0-62-generic/updates/dkms/
nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.3.0-62-generic/updates/dkms/
nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.3.0-62-generic/updates/dkms/
nvidia-peermem.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.3.0-62-generic/updates/dkms/
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.3.0-62-generic/updates/dkms/
depmod...
DKMS: install completed.
Setting up cuda-libraries-10-2 (10.2.89-1) ...
Setting up cuda-memcheck-10-2 (10.2.89-1) ...
Setting up nvidia-compute-utils-495 (495.29.05-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 126) ...
Adding new group `nvidia-persistenced' (GID 132) ...
Adding new user `nvidia-persistenced' (UID 126) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service → /lib/systemd/system/nvidia-persistenced.service.
Setting up cuda-nvrtc-dev-10-2 (10.2.89-1) ...
Setting up cuda-driver-dev-10-2 (10.2.89-1) ...
Setting up cuda-npp-dev-10-2 (10.2.89-1) ...
Setting up cuda-nsight-systems-10-2 (10.2.89-1) ...
Setting up cuda-nsight-10-2 (10.2.89-1) ...
Setting up cuda-nvdisasm-10-2 (10.2.89-1) ...
Setting up cuda-nvml-dev-10-2 (10.2.89-1) ...
Setting up cuda-nvgraph-dev-10-2 (10.2.89-1) ...
Setting up cuda-nvcc-10-2 (10.2.89-1) ...
Setting up libnvidia-decode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-nvprof-10-2 (10.2.89-1) ...
Setting up cuda-cusparse-dev-10-2 (10.2.89-1) ...
Setting up cuda-compiler-10-2 (10.2.89-1) ...
Setting up xserver-xorg-video-nvidia-495 (495.29.05-0ubuntu1) ...
Setting up cuda-curand-dev-10-2 (10.2.89-1) ...
Setting up cuda-cusolver-dev-10-2 (10.2.89-1) ...
Setting up cuda-nsight-compute-10-2 (10.2.89-1) ...
Setting up cuda-gdb-10-2 (10.2.89-1) ...
Setting up libnvidia-encode-495:amd64 (495.29.05-0ubuntu1) ...
Setting up cuda-cudart-dev-10-2 (10.2.89-1) ...
Setting up nvidia-driver-495 (495.29.05-0ubuntu1) ...
Setting up cuda-libraries-dev-10-2 (10.2.89-1) ...
Setting up cuda-visual-tools-10-2 (10.2.89-1) ...
Setting up cuda-samples-10-2 (10.2.89-1) ...
Setting up cuda-cupti-10-2 (10.2.89-1) ...
Setting up cuda-drivers-495 (495.29.05-1) ...
Setting up cuda-documentation-10-2 (10.2.89-1) ...
Setting up cuda-drivers (495.29.05-1) ...
Setting up cuda-cupti-dev-10-2 (10.2.89-1) ...
Setting up cuda-command-line-tools-10-2 (10.2.89-1) ...
Setting up cuda-runtime-10-2 (10.2.89-1) ...
Setting up cuda-tools-10-2 (10.2.89-1) ...
Setting up cuda-demo-suite-10-2 (10.2.89-1) ...
Setting up cuda-toolkit-10-2 (10.2.89-1) ...
Setting up cuda-10-2 (10.2.89-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
update-initramfs: Generating /boot/initrd.img-5.3.0-62-generic
cuda-10-2とnvidia driver 495がインストールされた.
driverは460を入れたかったので,495をsudo apt remove --purge *nviida*
で消去してから
sudo apt install nvidia-driver-460
でdriverを再インストールした.(先にインストールしておけばよかったのだが.)
torch.multiprocessing.set_sharing_strategy('file_system')
をしたら次のエラー
torch_shm_manager: error while loading shared libraries: libcudart.so.10.1: cannot open shared object file: No such file or directory
torch_shm_manager: error while loading shared libraries: libcudart.so.10.1: cannot open shared object file: No such file or directory
torch_shm_managertorch_shm_manager: : error while loading shared librarieserror while loading shared libraries: : libcudart.so.10.1libcudart.so.10.1: : cannot open shared object filecannot open shared object file: : No such file or directoryNo such file or directory
確かにlibcudart系は何もインストールしていなかったが,10.2ではなく10.1がほしいのか?
https://github.com/tensorflow/tensorflow/issues/34759#issuecomment-560529273
As printed in the stack trace Could not load dynamic library 'libcudart.so.10.1'. You have to roll back to cuda 10.1 in order to use TF 2.1 binary. For using cuda 10.2 you have to install TF from sources. Also, tensorflow pip package (TF 2.1) now includes GPU support by default (same as tensorflow-gpu) for both Linux and Windows.
$ pip list |grep tensorflow
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
tensorflow (0.10.0)
You are using pip version 9.0.3, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip3 list |grep tensorflow
tensorflow-estimator 2.4.0
tensorflow-gpu 2.4.0
WARNING: You are using pip version 19.3.1; however, version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
tensorflow, cuda相性表
$ pip install --user --upgrade pip==19.0
$ pip install --user Keras==2.1.6
$ pip install --user tensorflow==2.1.0
$ sudo apt remove --purge cuda*
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install cuda-10-1
FYI,
$ sudo apt install cuda-10-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gimp-data libbabl-0.1-0 libdca0 libde265-0 libgegl-0.3-0 libgimp2.0 libgssdp-1.0-3 libgupnp-1.0-4 libgupnp-igd-1.0-4 libkate1 liblilv-0-0 libmms0 libnice10 libnvidia-common-460 libofa0 libserd-0-0
libsord-0-0 libsoundtouch1 libspandsp2 libsratom-0-0 libsrtp2-1 libvo-aacenc0 libwildmidi-config libwildmidi2 libxatracker2 libzbar0 python3-pyaudio qml-module-qtgraphicaleffects qml-module-qtquick-controls
qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 shim xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
cuda-command-line-tools-10-1 cuda-compiler-10-1 cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1 cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1 cuda-cusparse-dev-10-1 cuda-demo-suite-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1 cuda-drivers cuda-drivers-495 cuda-gdb-10-1
cuda-gpu-library-advisor-10-1 cuda-libraries-10-1 cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1 cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1 cuda-nsight-compute-10-1
cuda-nsight-systems-10-1 cuda-nvcc-10-1 cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1 cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1 cuda-nvrtc-10-1
cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1 cuda-runtime-10-1 cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1 cuda-visual-tools-10-1 libnvidia-cfg1-495 libnvidia-common-495
libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
nvidia-kernel-source-495 nvidia-modprobe nvidia-utils-495 xserver-xorg-video-nvidia-495
Recommended packages:
libnvidia-compute-495:i386 libnvidia-decode-495:i386 libnvidia-encode-495:i386 libnvidia-fbc1-495:i386 libnvidia-gl-495:i386
The following packages will be REMOVED:
libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460 libnvidia-encode-460 libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-gl-460 libnvidia-ifr1-460 nvidia-compute-utils-460 nvidia-dkms-460
nvidia-driver-460 nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
The following NEW packages will be installed:
cuda-10-1 cuda-command-line-tools-10-1 cuda-compiler-10-1 cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1 cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1 cuda-cusparse-dev-10-1 cuda-demo-suite-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1 cuda-drivers cuda-drivers-495 cuda-gdb-10-1
cuda-gpu-library-advisor-10-1 cuda-libraries-10-1 cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1 cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1 cuda-nsight-compute-10-1
cuda-nsight-systems-10-1 cuda-nvcc-10-1 cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1 cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1 cuda-nvrtc-10-1
cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1 cuda-runtime-10-1 cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1 cuda-visual-tools-10-1 libnvidia-cfg1-495 libnvidia-common-495
libnvidia-compute-495 libnvidia-decode-495 libnvidia-encode-495 libnvidia-extra-495 libnvidia-fbc1-495 libnvidia-gl-495 nvidia-compute-utils-495 nvidia-dkms-495 nvidia-driver-495 nvidia-kernel-common-495
nvidia-kernel-source-495 nvidia-modprobe nvidia-utils-495 xserver-xorg-video-nvidia-495
0 upgraded, 67 newly installed, 15 to remove and 3 not upgraded.
Need to get 1,541 MB of archives.
After this operation, 3,289 MB of additional disk space will be used.
ii libnvidia-cfg1-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-495 495.29.05-0ubuntu1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA libcompute package
ii libnvidia-decode-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-495:amd64 495.29.05-0ubuntu1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-495:amd64 495.29.05-0ubuntu1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-495:amd64 495.29.05-0ubuntu1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii nvidia-compute-utils-495 495.29.05-0ubuntu1 amd64 NVIDIA compute utilities
ii nvidia-dkms-495 495.29.05-0ubuntu1 amd64 NVIDIA DKMS package
ii nvidia-driver-495 495.29.05-0ubuntu1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-495 495.29.05-0ubuntu1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-495 495.29.05-0ubuntu1 amd64 NVIDIA kernel source package
ii nvidia-modprobe 495.29.05-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-prime 0.8.16~0.18.04.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 495.29.05-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-495 495.29.05-0ubuntu1 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-495 495.29.05-0ubuntu1 amd64 NVIDIA binary Xorg driver
$ dpkg -l |grep cuda
ii cuda-10-1 10.1.243-1 amd64 CUDA 10.1 meta-package
ii cuda-command-line-tools-10-1 10.1.243-1 amd64 CUDA command-line tools
ii cuda-compiler-10-1 10.1.243-1 amd64 CUDA compiler
ii cuda-cudart-10-1 10.1.243-1 amd64 CUDA Runtime native Libraries
ii cuda-cudart-dev-10-1 10.1.243-1 amd64 CUDA Runtime native dev links, headers
ii cuda-cufft-10-1 10.1.243-1 amd64 CUFFT native runtime libraries
ii cuda-cufft-dev-10-1 10.1.243-1 amd64 CUFFT native dev links, headers
ii cuda-cuobjdump-10-1 10.1.243-1 amd64 CUDA cuobjdump
ii cuda-cupti-10-1 10.1.243-1 amd64 CUDA profiling tools interface.
ii cuda-curand-10-1 10.1.243-1 amd64 CURAND native runtime libraries
ii cuda-curand-dev-10-1 10.1.243-1 amd64 CURAND native dev links, headers
ii cuda-cusolver-10-1 10.1.243-1 amd64 CUDA solver native runtime libraries
ii cuda-cusolver-dev-10-1 10.1.243-1 amd64 CUDA solver native dev links, headers
ii cuda-cusparse-10-1 10.1.243-1 amd64 CUSPARSE native runtime libraries
ii cuda-cusparse-dev-10-1 10.1.243-1 amd64 CUSPARSE native dev links, headers
ii cuda-demo-suite-10-1 10.1.243-1 amd64 Demo suite for CUDA
ii cuda-documentation-10-1 10.1.243-1 amd64 CUDA documentation
ii cuda-driver-dev-10-1 10.1.243-1 amd64 CUDA Driver native dev stub library
ii cuda-drivers 495.29.05-1 amd64 CUDA Driver meta-package, branch-agnostic
ii cuda-drivers-495 495.29.05-1 amd64 CUDA Driver meta-package, branch-specific
ii cuda-gdb-10-1 10.1.243-1 amd64 CUDA-GDB
ii cuda-gpu-library-advisor-10-1 10.1.243-1 amd64 CUDA GPU Library Advisor.
ii cuda-libraries-10-1 10.1.243-1 amd64 CUDA Libraries 10.1 meta-package
ii cuda-libraries-dev-10-1 10.1.243-1 amd64 CUDA Libraries 10.1 development meta-package
ii cuda-license-10-1 10.1.243-1 amd64 CUDA licenses
ii cuda-memcheck-10-1 10.1.243-1 amd64 CUDA-MEMCHECK
ii cuda-misc-headers-10-1 10.1.243-1 amd64 CUDA miscellaneous headers
ii cuda-npp-10-1 10.1.243-1 amd64 NPP native runtime libraries
ii cuda-npp-dev-10-1 10.1.243-1 amd64 NPP native dev links, headers
ii cuda-nsight-10-1 10.1.243-1 amd64 CUDA nsight
ii cuda-nsight-compute-10-1 10.1.243-1 amd64 NVIDIA Nsight Compute
ii cuda-nsight-systems-10-1 10.1.243-1 amd64 NVIDIA Nsight Systems
ii cuda-nvcc-10-1 10.1.243-1 amd64 CUDA nvcc
ii cuda-nvdisasm-10-1 10.1.243-1 amd64 CUDA disassembler
ii cuda-nvgraph-10-1 10.1.243-1 amd64 NVGRAPH native runtime libraries
ii cuda-nvgraph-dev-10-1 10.1.243-1 amd64 NVGRAPH native dev links, headers
ii cuda-nvjpeg-10-1 10.1.243-1 amd64 NVJPEG native runtime libraries
ii cuda-nvjpeg-dev-10-1 10.1.243-1 amd64 NVJPEG native dev links, headers
ii cuda-nvml-dev-10-1 10.1.243-1 amd64 NVML native dev links, headers
ii cuda-nvprof-10-1 10.1.243-1 amd64 CUDA Profiler tools
ii cuda-nvprune-10-1 10.1.243-1 amd64 CUDA nvprune
ii cuda-nvrtc-10-1 10.1.243-1 amd64 NVRTC native runtime libraries
ii cuda-nvrtc-dev-10-1 10.1.243-1 amd64 NVRTC native dev links, headers
ii cuda-nvtx-10-1 10.1.243-1 amd64 NVIDIA Tools Extension
ii cuda-nvvp-10-1 10.1.243-1 amd64 CUDA nvvp
ii cuda-runtime-10-1 10.1.243-1 amd64 CUDA Runtime 10.1 meta-package
ii cuda-samples-10-1 10.1.243-1 amd64 CUDA example applications
ii cuda-sanitizer-api-10-1 10.1.243-1 amd64 CUDA Sanitizer API
ii cuda-toolkit-10-1 10.1.243-1 amd64 CUDA Toolkit 10.1 meta-package
ii cuda-tools-10-1 10.1.243-1 amd64 CUDA Tools meta-package
ii cuda-visual-tools-10-1 10.1.243-1 amd64 CUDA visual tools
$ nvidia-smi
Wed Dec 1 19:36:10 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.29.05 Driver Version: 495.29.05 CUDA Version: 11.5 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:0D:00.0 On | N/A |
| 30% 32C P8 8W / 250W | 272MiB / 11011MiB | 11% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1389 G /usr/lib/xorg/Xorg 163MiB |
| 0 N/A N/A 2389 G /usr/bin/gnome-shell 50MiB |
| 0 N/A N/A 2959 G ...AAAAAAAAA= --shared-files 55MiB |
+-----------------------------------------------------------------------------+
install cudnn 7.6.5 https://drive.google.com/drive/u/0/folders/1CObKBDL3AqbV2QDpTCvJ56AaGGcHaffj
cz
バージョン | Python バージョン | コンパイラ | ビルドツール | cuDNN | CUDA
tensorflow-2.1.0 | 2.7、3.5~3.7 | GCC 7.3.1 | Bazel 0.27.1 | 7.6 | 10.1
also 7.6.5 is the major version by ggr it.
$ pip3 list |grep tensorflow
tensorflow-estimator 2.4.0
tensorflow-gpu 2.4.0
WARNING: You are using pip version 19.3.1; however, version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip list |grep tensorflow
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
tensorflow 2.1.0
tensorflow-estimator 2.1.0
tensorflow-gpu 2.1.0
You are using pip version 19.0, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
python2,3共に同じtensorflow versionにすべき,なぜならどちらも同じversionのcudaを使うから. よって,python3系も2.1.0のtensorflow各種をインストール.
$ pip3 install --user tensorflow==2.1.0 tensorflow-estimator==2.1.0 tensorflow-gpu==2.1.0
Still error but not related now so ignore
ERROR: pytorch-lightning 1.4.5 has requirement tensorboard>=2.2.0, but you'll have tensorboard 2.1.1 which is incompatible.
Finally get
$ pip3 list |grep tensorflow
tensorflow 2.1.0
tensorflow-estimator 2.1.0
tensorflow-gpu 2.1.0
Execute below to install cuda 10-2. Reference: wada-san install script in dotfile repo
Here is the result.