0

I have recently installed CUDA-9.2, CuDnn and GPU version of tensorflow on CentOS 7. While importing it is showing

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

But As I have previously mentioned I have CUDA 9.2 installed instead of CUDA 9.0. I have libcublas.so.9.2 file in both usr/local/cuda/lib64 and usr/local/cuda-9.2/lib64. Also in my .bashrc file I have added the following lines:

export PATH=/usr/local/cuda-9.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64:$LD_LIBRARY_PATH

What should I do to resolve this?

talonmies
  • 70,661
  • 34
  • 192
  • 269
shivank01
  • 1,015
  • 3
  • 16
  • 35
  • 2
    Install CUDA 9.0 – talonmies Jun 24 '18 at 06:12
  • @talonmies Is there any other solution? Like can Install tensorflow to use cuda 9.2? – shivank01 Jun 24 '18 at 06:13
  • 2
    not currently. You could build TF from sources, or look for somebody who has posted a TF wheel on CUDA 9.2. Good luck with that. You cannot use CUDA 9.2 as a replacement or substitute for CUDA 9.0, if your TF build was linked against CUDA 9.0 – Robert Crovella Jun 24 '18 at 06:49
  • 1
    Struggling with the same issue... wish there were a way to tell TensorFlow what CUDA version to look for. – Apollys supports Monica Jul 11 '18 at 19:40
  • 1
    You can install tensorflow from the source to make it work with cuda 9.2. – shivank01 Jul 11 '18 at 19:44
  • If there's some reason why CUDA 9.0 can't be easily installed, you could try to symlink libcublas.so.9.0 to point to libcublas.so.9.2. – user2653663 Sep 03 '18 at 20:13
  • did this work? I have same issue, I need to use cuda 9.2, but my tensorflow is looking for libcublas.so.9.0 – Arka Mallick Sep 26 '18 at 01:37
  • According to [tensorflow tested build configurations](https://www.tensorflow.org/install/source#gpu) none of the `TF` version supports `CUDA 9.2`. Incase to use `9.2`, you can follow [build from source](https://www.tensorflow.org/install/source) document. Many other solutions are discussed in [this](https://stackoverflow.com/questions/48428415/importerror-libcublas-so-9-0-cannot-open-shared-object-file/) thread may also help you. Thanks! –  Jul 12 '21 at 07:36

0 Answers0