How to install TensorFlow-gpu with cuda8.0?

inkzk picture inkzk · Feb 2, 2018 · Viewed 30.4k times · Source

I tried to install it according to the instructions on official website, which results in an ImportError when I import tensorflow:

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

I run the code cat /usr/local/cuda/version.txt, which shows that my cuda version is 8.0.61.

It seems that tensorflow is looking for cuda 9.0. I cannot upgrade the cuda as I am working on a shared gpu-server and I do not have the root authority.

Is there any way to make tensorflow work with cuda 8.0? Or any other way available?

Thanks!!

Answer

layog picture layog · Feb 2, 2018

You'll need to install the version 1.4.1 for CUDA-8 as

pip install tensorflow-gpu==1.4.1

The latest (version 1.5) is for CUDA-9