LoginSignup
10

More than 3 years have passed since last update.

tensorflow-gpuで libcublas.so.10.0のImportError

Posted at

tensorflow 1.13からcuda10がデフォルで利用されるようになり、

そこで下記のようなエラーが出された

ImportError: libcublas.so.10.0: cannot open shared object file: 
No such file or directory

cuda9.0を利用していたのでまずは10にアップデート。

しかし、まだ上記エラーは消えない。 

ちなみに、PATHは下記のように通している

# CUDA
export PATH="/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"

/usr/local/cuda/lib64配下に確かにlibcublas.so.10.0はない。
どうやら, 下記にあるよう。

/usr/lib/x86_64-linux-gnu

したがって
LD_LIBRARY_PATHに上記を追加する。

export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"

以上で、OK.

参考:
https://github.com/tensorflow/tensorflow/issues/26182#issuecomment-472674508

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10