I have a Ubuntu 18.04 system that has previously installed CUDA-10.0 and now installed CUDA-10.2. So both CUDA-10.0 and CUDA-10.2 folders exist in /usr/local. When running a program I get following error:
error while loading shared libraries: libcublas.so.10: cannot open shared object file: No such file or directory
I have written to PATH and LD_LIBRARY_PATH as follows,
export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
I searched online but all related errors are about “libcublas.so.10.0”. And I have no idea what my error message means. Is it caused by CUDA-10.0? How can I deal with it?
nvidia-smi gives the following output:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 430.17 Driver Version: 430.17 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 208… Off | 00000000:17:00.0 Off | N/A |
| 41% 31C P8 11W / 260W | 1MiB / 11019MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 TITAN Xp Off | 00000000:65:00.0 On | N/A |
| 23% 32C P0 61W / 250W | 524MiB / 12194MiB | 15% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 1 1669 G /usr/lib/xorg/Xorg 294MiB |
| 1 2806 G /opt/teamviewer/tv_bin/TeamViewer 20MiB |
| 1 3064 G compiz 105MiB |
| 1 3566 G …AAAAAAAAAAAACAAAAAAAAAA= --shared-files 53MiB |
| 1 31868 G …quest-channel-token=2838785170054238481 44MiB |
±----------------------------------------------------------------------------+