Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dyanmic Library not loading tensorflow-gpu #36294

Closed
Broyojo opened this issue Jan 29, 2020 · 4 comments
Closed

Dyanmic Library not loading tensorflow-gpu #36294

Broyojo opened this issue Jan 29, 2020 · 4 comments
Assignees
Labels
stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.1 for tracking issues in 2.1 release type:build/install Build and install issues

Comments

@Broyojo
Copy link

Broyojo commented Jan 29, 2020

  • OS Platform and Distribution: Zorin OS 15.1
  • TensorFlow installed from binary
  • TensorFlow version: 2.1.0
  • Python version: 3.6.9
  • Installed using pip
  • CUDA/cuDNN version: 10.2
  • GPU model and memory: 2080ti with 11gb of gddr6

So basically I want to leverage tensorflow-gpu since my gpu has a compute capability of 7.5. I went through all the steps that are on the tensorflow gpu installation for ubuntu website and for some reason I get this sort of message: Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory

The steps, as mentioned before, are the same ones on the tensorflow-gpu install website:

To reproduce this, I am just using this code:
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))

This is the full console output:
2020-01-28 21:41:28.276270: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libnvinfer.so.6 2020-01-28 21:41:28.277129: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libnvinfer_plugin.so.6 2020-01-28 21:41:28.595376: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2020-01-28 21:41:28.636979: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-01-28 21:41:28.637622: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.65GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2020-01-28 21:41:28.637741: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory 2020-01-28 21:41:28.637802: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2020-01-28 21:41:28.638713: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2020-01-28 21:41:28.638860: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2020-01-28 21:41:28.639785: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2020-01-28 21:41:28.640301: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2020-01-28 21:41:28.640321: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2020-01-28 21:41:28.640326: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1592] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... Num GPUs Available: 0

@gadagashwini-zz gadagashwini-zz added the TF 2.1 for tracking issues in 2.1 release label Jan 29, 2020
@gadagashwini-zz
Copy link
Contributor

@Broyojo, As the error says Could not load dynamic library 'libcudart.so.10.1, you have to install CUDA 10.1 in order to use 2.1.
Similar issue #34759.

@gadagashwini-zz gadagashwini-zz added the stat:awaiting response Status - Awaiting response from author label Jan 29, 2020
@Broyojo
Copy link
Author

Broyojo commented Jan 29, 2020

Yes it worked. For anyone wondering what I did I just ran: sudo apt-get install cuda-10-1

@gadagashwini-zz gadagashwini-zz added type:build/install Build and install issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels Jan 30, 2020
@gadagashwini-zz
Copy link
Contributor

@Broyojo, Glad that it is working.
I am closing as it is resolved. Thanks!

@tensorflow-bot
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.1 for tracking issues in 2.1 release type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants