• Register
0 votes
158 views

Problem :

I have installed Cuda 10.1 and cudnn on Ubuntu 18.04 for the first time and it seems to be installed properly as when I type nvcc and nvidia-smi I am getting proper response.

I have also installed tensorflow using following command:

user:~$ sudo pip3 install --upgrade tensorflow-gpu

But when I am trying to import tensorflow I am getting following error about libcublas.so.10.0:

ImportError : libcublas.so.10.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Am I missing something? How to resolve this issue?

6 5 3
7,540 points

1 Answer

0 votes

Solution :

This error generally occurs when the version of your cuda and tensorflow installed are not compatible. I also encountered the same Import Error while I was running tensorflow version 1.13.0 with my cuda 9. As I had installed tensorflow on a virtual environment with pip, I just had to uninstall the tensorflow 1.13.0 and install tensorflow 1.12.0 using following commands :

pip uninstall tensorflow-gpu tensorflow-estimator tensorboard
pip install tensorflow-gpu==1.12.0

Now everything is working for me.

OR

You can fix the error by adding the following command to your '.bashrc' file.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64/

 

System configuration:

Ubuntu :- 16.04 LTS
Tensorflow :-GPU 2.0beta1
Cuda:- 10.0
cuDNN :-7.6.0 for Cuda 10.0

Here I used the conda to configure my system.

9 7 4
38,600 points

Related questions

0 votes
0 answers 151 views
151 views
Problem : I have installed Cuda 10.1 and cudnn on Ubuntu 18.04 for the first time and it seems to be installed properly as when I type nvcc and nvidia-smi I am getting proper response. I have also installed tensorflow using following command: user:~$ sudo ... solutions. Include the entire stack trace above this error message when asking for help. Am I missing something? How to resolve this issue?
asked Nov 27, 2019 AbhijitJ 38.6k points
0 votes
2 answers 64 views
64 views
Problem : I have recently installed the cuda 8.0 and cuda 9.0 in the Gpu support system. I encountered the below error while importing from the keras module. It says it is unable to load the native tensorflow runtime. I have received the error log as below: Traceback ... is, Cuda compilation tools, release 8.0, V8.0.61 Is it the clash between two cuda versions? Have anyone solved this before?
asked Feb 18 mphil 2.3k points
0 votes
1 answer 395 views
395 views
Problem : I am having following issues in importing tensorflow in python3: >>> import tensorflow as tf Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> from tensorflow.python. ... I have also installed CUDA 8.0 and cuDNN-v6.0.Also my libcusolver.so.8.0 exists at /usr/local/cuda/lib64/:
asked Nov 24, 2019 alecxe 7.5k points
0 votes
1 answer 63 views
63 views
Problem : I am very new to tensorflow-gpu, I want to use the tensorflow-gpu on my system. I have already tried to reinstall tensorflow-gpu many times but still it shows me the following error.If I use the tensorflow-cpu then it works correctly. Please Note: I ... ) ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory Can somebody help me in fixing above error ?
asked Feb 19 mphil 2.3k points
0 votes
1 answer 1.1K views
1.1K views
Problem : I am facing following error : ImportError: libcuda.so.1: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime. Above error comes up when I tried to import the tensorflow. Is there anybody who has faced this error before and know the solution on it?
asked Dec 10, 2019 alecxe 7.5k points