Libcublas.so.10: cannot open shared object file: No such file or directory mxnet

Hello guys,

Am seeking for help running the mxnet in ubuntu 20.04 with cuda 11.1 installed. I have installed the mxnet-cu101 but seems like it’s not compatible with the cuda version that I have in my machine.

I have tried uninstalling the cuda 11.1 version and install the cuda 10.1 but no success because in ubuntu 20.04, it keeps on installing the latest cuda driver no matter how hard I tried.

I hope you guys could help me with my problem. Thank you so much.

This page may help you.

Run this command find /usr -name libcublas*
In my environment(Ubuntu18.04 on WSL2), the output is

/usr/share/doc/libcublas-dev
/usr/share/doc/libcublas10
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublasLt_static.a
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublas.so
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublas_static.a
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublas.so.10.2.2.214
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublasLt.so.10
/usr/local/cuda-10.2/targets/x86_64-linux/lib/stubs/libcublas.so
/usr/local/cuda-10.2/targets/x86_64-linux/lib/stubs/libcublasLt.so
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublasLt.so
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublasLt.so.10.2.2.214
/usr/local/cuda-10.2/targets/x86_64-linux/lib/libcublas.so.10
/usr/local/cuda-10.1/doc/man/man7/libcublas.so.7
/usr/local/cuda-10.1/doc/man/man7/libcublas.7

I added the pass and solved this error.
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/targets/x86_64-linux/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Hope this helps.

You can always install multiple versions of cuda on your system. Install the required compatible version, in your case cuda 10.1 version along with 11.1 version. Update the LD_LIBRARY_PATH and PATH accordingly. Hope this will help.