libnvidia-compute-470 is getting mixed up with nvida graphics drivers, libraries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-470 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm on `Ubuntu 20.04.2 LTS`.
If I use CUDA from the Julia repl, it is successful.
If I try it from a jupyter notebook, launched from the same repl that successfully uses CUDA, I get the error
could not load library "libcuda.so.1"
The only instance of that filename is:
```
% locate libcuda.so.1
/usr/lib/
```
Which is not in the nvidia install of CUDA. It is from
```
% dpkg -S /usr/lib/
/usr/lib/
```
which is maintained by ubuntu core developers.
```
sudo update-alternatives --display cuda
cuda - auto mode
link best version is /usr/local/
link currently points to /usr/local/
link cuda is /usr/local/cuda
/usr/local/
```
```
% nvidia-smi
...
NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4
...
% nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Wed_Jun_
Cuda compilation tools, release 11.4, V11.4.48
Build cuda_11.
```
The Julia repl is running CUDA fine:
```
julia> using CUDA
julia> CUDA.versioninfo()
CUDA toolkit 11.3.1, artifact installation
CUDA driver 11.4.0
NVIDIA driver 470.57.2
Libraries:
- CUBLAS: 11.5.1
- CURAND: 10.2.4
- CUFFT: 10.4.2
- CUSOLVER: 11.1.2
- CUSPARSE: 11.6.0
- CUPTI: 14.0.0
- NVML: 11.0.0+470.57.2
- CUDNN: 8.20.0 (for CUDA 11.3.0)
- CUTENSOR: 1.3.0 (for CUDA 11.2.0)
Toolchain:
- Julia: 1.6.1
- LLVM: 11.0.1
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5, 7.0
- Device capability support: sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75, sm_80
1 device:
0: NVIDIA GeForce GTX 1050 Ti (sm_61, 3.446 GiB / 3.938 GiB available)
```
```
% julia
_
_ _ _(_)_ | Documentation: https:/
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https:/
|__/ |
(@v1.6) pkg> add CUDA, IJulia
Updating registry at `~/.julia/
Resolving package versions...
No Changes to `~/.julia/
No Changes to `~/.julia/
shell> ls
common_
DeviceSideRNG.ipynb ImageProcessing
Diffusion.ipynb Introduction_
julia> using IJulia
julia> jupyterlab()
```
I apologise for the formatting, I started reporting this on a mark-down based system. I really wish ubuntu used markdown like everyone else :-(