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
Tensorflow does not recognice GPU no matter what #65269
Comments
@6CRIPT, - Make sure cuda and cudnn are installed correctly.
- Make sure $Env:CUDA_PATH is given correctly
- Make sure $Env:LD_LIBRARY_PATH is given correctly
- Make sure $Env:TF_CUDA_PATHS is given correctly
- Use pip install tensorflow[and-cuda] instead of pip install tensorflow. Because extensions, such as nvidia-cuda-* and nvidia-cudnn-* from pip(Pypi) are also needed. Thank you! |
Hi, thanks for your reply. |
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. |
Hi I finally solved it. It was all about installing exactly the acurrate versions. Thanks for your responses ! :D I have uploaded a video to youtube explaining the process: |
Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
2.16.1 or 2.12.0 or 2.10.0
Custom code
Yes
OS platform and distribution
Ubuntu 22.04
Mobile device
No response
Python version
3.9.19
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
CUDA 11.5
GPU model and memory
i7 12700k, 32 GB RAM
Current behavior?
So I am trying in all the ways that are written on the internet to tensorflow detect my GPU. I am currently using a conda enviroment on WSL2. I was following this guide: https://medium.com/@mass.thanapol/tensorflow-with-gpu-on-linux-or-wsl2-10b02fd19924 and then this: https://www.tensorflow.org/install/pip?hl=es-419#windows-wsl2 I have spent like 15 hours of trying tensorflow detect my GPU. I really really really need help. I am using it to my final project of CS. Thanks in advice.
Standalone code to reproduce the issue
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
Relevant log output
The text was updated successfully, but these errors were encountered: