I'm a CUDA newbe I would greatly appreciate help/comment regarding CUDA installation. I've been fighting for a long time with installation on my Ubuntu 18.04 HP Z420 machine:
with kernel: 5.3.0-46-generic, Xeon E5, nVidia Quadro K600, and nvidia-driver-440.
I cannot remember for sure in which order I installed what (apt install nvidia-cuda-toolkit vs apt install cuda), as I was installing and uninstalling for a few times due to constant errors.
I think in the last trial I installed cuda, uninstalled it and installed nvidia-cuda-toolkit, what seemed to work. Finally I'm getting such outputs with two different versions (10.2 and 9.1).
Will it work? Which version will be used by external applications? Any comments and help will be most appreciated!
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
nvidia-smi
Sun Apr 19 19:28:29 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64.00 Driver Version: 440.64.00 CUDA Version: 10.2
dpkg -l | grep cuda
rc cuda-cudart-10-2 10.2.89-1 amd64 CUDA Runtime native Libraries
rc cuda-cudart-dev-10-2 10.2.89-1 amd64 CUDA Runtime native dev links, headers
rc cuda-cufft-10-2 10.2.89-1 amd64 CUFFT native runtime libraries
rc cuda-cupti-10-2 10.2.89-1 amd64 CUDA profiling tools runtime libs.
rc cuda-curand-10-2 10.2.89-1 amd64 CURAND native runtime libraries
rc cuda-cusolver-10-2 10.2.89-1 amd64 CUDA solver native runtime libraries
rc cuda-cusparse-10-2 10.2.89-1 amd64 CUSPARSE native runtime libraries
rc cuda-npp-10-2 10.2.89-1 amd64 NPP native runtime libraries
rc cuda-nvcc-10-2 10.2.89-1 amd64 CUDA nvcc
rc cuda-nvgraph-10-2 10.2.89-1 amd64 NVGRAPH native runtime libraries
rc cuda-nvjpeg-10-2 10.2.89-1 amd64 NVJPEG native runtime libraries
rc cuda-nvprof-10-2 10.2.89-1 amd64 CUDA Profiler tools
rc cuda-nvrtc-10-2 10.2.89-1 amd64 NVRTC native runtime libraries
rc cuda-nvtx-10-2 10.2.89-1 amd64 NVIDIA Tools Extension
rc cuda-sanitizer-api-10-2 10.2.89-1 amd64 CUDA Sanitizer API
rc cuda-toolkit-10-2 10.2.89-1 amd64 CUDA Toolkit 10.2 meta-package
rc cuda-visual-tools-10-2 10.2.89-1 amd64 CUDA visual tools
ii libcudart9.1:amd64 9.1.85-3ubuntu1 amd64 NVIDIA CUDA Runtime Library
ii nvidia-cuda-dev 9.1.85-3ubuntu1 amd64 NVIDIA CUDA development files
ii nvidia-cuda-doc 9.1.85-3ubuntu1 all NVIDIA CUDA and OpenCL documentation
ii nvidia-cuda-gdb 9.1.85-3ubuntu1 amd64 NVIDIA CUDA Debugger (GDB)
ii nvidia-cuda-toolkit 9.1.85-3ubuntu1 amd64 NVIDIA CUDA development toolkit