question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tensorflow-gpu does not recognize my NVIDIA GPU when using Poetry

See original GitHub issue
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • Ubuntu 20.04:

  • Poetry 1.0.0:

Issue

Hello! Firstly Nice work of yours!

Well, I’m getting this issue and, for some reason, I couldn’t find anything related in my previous research.

I was building a package for my classification task using tensorflow-gpu and it was working just fine. I’m using tensorflow-gpu on version 2.2.0 and my CUDA version is 10.1, all fine to work with this kind of task and requirements.

Well, for some personal reasons I decide to use poetry to deal with versioning, but just after all the dependencies were installed with poetry tensorflow-gpu stop to recognize my GPU. Even though its all installed and working fine.

Commnad:

tf.config.experimental.list_physical_devices('GPU')

Result:

2020-08-07 22:49:36.619079: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2020-08-07 22:49:36.619139: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
2020-08-07 22:49:36.619165: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: lead-XPS-8930
2020-08-07 22:49:36.619500: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: lead-XPS-8930
2020-08-07 22:49:36.619548: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: Not found: was unable to find libcuda.so DSO loaded into this program
2020-08-07 22:49:36.619716: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 435.21.0

Anything outside poetry environment runs the command above just fine!

Have no IDEA whats happening. If you guys could give me a hint on how to solve this I’d be greatful! 👍

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
joooeeycommented, May 7, 2021

See also: my similar issue on the tensorflow issue tracker: https://github.com/tensorflow/tensorflow/issues/48939

0reactions
igormcsouzacommented, Sep 19, 2021

Thanks for the advice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorflow doesn't seem to see my gpu - Stack Overflow
When I look up your GPU, I see that it only supports CUDA Compute Capability 2.1. (Can be checked through https://developer.nvidia.com/cuda-gpus) ...
Read more >
Solution to TensorFlow 2 not using GPU | by Shakti Wadekar
This article addresses the reason and debugging/solution process to solve the issue of tensorflow 2 (tf2) not using GPU. There may be other ......
Read more >
Text generation with an RNN - TensorFlow
This tutorial demonstrates how to generate text using a character-based RNN. You will work with a dataset of Shakespeare's writing from ...
Read more >
Can't get Tensorflow + GPU working. : r/NixOS - Reddit
You need cudaSupport = true; in your nix config to get pytorch to work with CUDA. Not sure if that works with tensorflow...
Read more >
tensorflow doesn't use GPU even it's detecting it - Super User
Tensorflow is using 89%of the shader cores on your GPU. The rest of the GPU being idle is because your program doesn't need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found