You are not logged in.

#1 2019-04-05 16:27:01

joanmanel
Member
Registered: 2012-11-06
Posts: 234

Python Tensorflow cannot open CUDA library libcublas.so.10.1

There was a big CUDA update recently, and since then I cannot run Python3, CUDA, Tensorflow.

The error I get is like the following one:

2019-04-05 16:22:16.819844: I tensorflow/stream_executor/dso_loader.cc:142] Couldn't open CUDA library libcublas.so.10.1. LD_LIBRARY_PATH: 
2019-04-05 16:22:16.819876: F tensorflow/stream_executor/lib/statusor.cc:34] Attempting to fetch value instead of handling error Failed precondition: could not dlopen DSO: libcublas.so.10.1; dlerror: libcublas.so.10.1: cannot open shared object file: No such file or directory
  Aborted (core dumped)

Last edited by joanmanel (2019-04-05 16:27:40)

Offline

#2 2019-04-06 04:21:25

code2501
Member
Registered: 2019-03-10
Posts: 2

Re: Python Tensorflow cannot open CUDA library libcublas.so.10.1

I have the same problem.
cuda-10.0.130-2 with python-tensorflow-opt-cuda-1.13.1-2 work fine.
when those upgraded to cuda-10.1.105-6 and python-tensorflow-opt-cuda-1.13.1-4, problem happened.

ldconfig -p | grep libcublas
        libcublasLt.so.10 (libc6,x86-64) => /opt/cuda/lib64/libcublasLt.so.10
        libcublasLt.so (libc6,x86-64) => /opt/cuda/lib64/libcublasLt.so
        libcublas.so.10 (libc6,x86-64) => /opt/cuda/lib64/libcublas.so.10
        libcublas.so (libc6,x86-64) => /opt/cuda/lib64/libcublas.so

Last edited by code2501 (2019-04-06 04:26:49)

Offline

#3 2019-04-07 17:25:56

partus
Member
Registered: 2019-04-07
Posts: 1

Re: Python Tensorflow cannot open CUDA library libcublas.so.10.1

For some reasons ldconfig doesn't create link to libcublas.so.10.1

ldconfig -v  | grep libcublas
	libcublas.so.10 -> libcublas.so.10.1.0.105
	libcublasLt.so.10 -> libcublasLt.so.10.1.0.105

My temporal workaround is passing it with LD_LIBRARY_PATH=/opt/cuda/lib64

Offline

#4 2019-04-09 17:13:44

TheFiddler
Member
Registered: 2009-02-09
Posts: 38

Re: Python Tensorflow cannot open CUDA library libcublas.so.10.1

Same problem here, on two different systems I am supporting.

Edit: https://bugs.archlinux.org/task/62287

Last edited by TheFiddler (2019-04-09 17:31:46)


The Open Toolkit: OpenGL, OpenAL, OpenCL and Vulkan for Mono/.Net.

Offline

#5 2019-04-16 22:17:25

kgizdov
Package Maintainer (PM)
From: Edinburgh, UK
Registered: 2015-12-08
Posts: 113

Re: Python Tensorflow cannot open CUDA library libcublas.so.10.1

The issue is upstream with CUDA. It is now manually patched in cuda-10.1.105-11:

$ ldconfig -v | grep cublas
	libcublas.so.10 -> libcublas.so.10.1.0.105
	libcublasLt.so.10 -> libcublasLt.so.10.1.0.105
	libcublasLt.so.10.1 -> libcublasLt.so.10.1
	libcublas.so.10.1 -> libcublas.so.10.1

Offline

Board footer

Powered by FluxBB