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

tensorflow=2.16 cant use GPU #64536

Closed
yinjg1997 opened this issue Mar 26, 2024 · 3 comments
Closed

tensorflow=2.16 cant use GPU #64536

yinjg1997 opened this issue Mar 26, 2024 · 3 comments
Assignees
Labels
comp:gpu GPU related issues stat:awaiting response Status - Awaiting response from author TF 2.16 type:bug Bug

Comments

@yinjg1997
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

tf 2.16

Custom code

Yes

OS platform and distribution

win10

Mobile device

win10

Python version

3.11

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

12.3

GPU model and memory

No response

Current behavior?

Kill me!!!!
How exactly can I use the gpu power of tensorflow?
My python version is 3.11.
CUDA Version is 12.3.
nvcc --version is 12.3.
cudnn version is 8.9.6.50_cuda12

On this environment Pytorch's gpu is available, but tensorflow==2.16 can't utilize the gpu.

Why tensorflow just can't utilize GPU.
This problem has been tormenting me for 2 hours now, what should I do?

Standalone code to reproduce the issue

import tensorflow as tf

print("GPU Available: ", tf.config.list_physical_devices('GPU'))

print("TensorFlow Version: ", tf.__version__)

Relevant log output

No response

@tilakrayal
Copy link
Contributor

@yinjg1997,
GPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin.
https://www.tensorflow.org/install/source_windows#install_gpu_support_optional
https://www.tensorflow.org/install/pip#windows-native

Thank you!

@tilakrayal tilakrayal added the stat:awaiting response Status - Awaiting response from author label Mar 27, 2024
@yinjg1997
Copy link
Author

Tensorflow is great project.
Not supporting running GPUs on native Windows is a disgustingly awful decision this adds context to using Tensorflow.
Thank you anyway.

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
comp:gpu GPU related issues stat:awaiting response Status - Awaiting response from author TF 2.16 type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants