-
Notifications
You must be signed in to change notification settings - Fork 74k
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
GPU not detected / tf.test.is_built_with_cuda returns False #47147
Comments
As an update I ran the deviceQuery program and CUDA seems to be able to see by GPU; but tensorflow doesn't? C:\Users\XXXX>cd C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite>deviceQuery.exe CUDA Device Query (Runtime API) version (CUDART static linking) Detected 1 CUDA Capable device(s) Device 0: "GeForce RTX 3080" deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.2, CUDA Runtime Version = 10.1, NumDevs = 1, Device0 = GeForce RTX 3080 |
@deepLearner84,
Thanks! |
@amahendrakar Thank you for your quick response, this has resolved the issue. What had I done wrong? My understanding was that cuDNN 7.6 / CUDA 10.1 was the tested build configuration for tensorflow 2.3.0? Cheers |
Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
documentation (for small docs fixes please send a PR instead).
here.
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
provided in TensorFlow): N/A
happens on a mobile device: N/A
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the problem
-Installed MSVS 2019 Community Edition
-Installed Cuda Toolkit 10.1 [in preparation for TensorFlow 2.3.0 from conda]. NOTE: Did custom installation, not installing the graphics or physics drivers as I already have the most up to date drivers.
-Installed / copied drivers across from cuDNN 7.6.4
-Installed Anaconda 2020.11
-Created environment and installed TensorFlow-GPU [conda create -n tf-gpu tensorflow-gpu]
-Activated tf-gpu environment [conda activate tf-gpu]
-started python [python]
-imported tensorflow [import tensorflow as tf]
-checked installation [tf.test.is_built_with_cuda()]
returns False
-checked for GPU [tf.config.list_physical_devices('GPU')
returns []
I'm not sure what I'm missing or doing wrong during the installation. I don't have the CPU only tensorflow installed. Is it because I am not installing the graphics drivers with CUDA Toolkit? Any help is much appreciated.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
The text was updated successfully, but these errors were encountered: