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.12.0 WSL2 GPU support #60101
Comments
@tg2k |
@tiruk007 Having the same issue. CUDA 11.8 and cuDNN 8.6 |
The issue you are experiencing could be due to TensorFlow 2.12 not being properly configured for GPU support in your new environment. When you install TensorFlow with pip, it doesn't automatically install the GPU version, which is tensorflow-gpu. Here's how to set up your environment to use TensorFlow with GPU support: |
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. |
The issue is still unresolved; when doing |
@Monah84 i disagree with that, i have the lastest tensorflow with gpu by installing using pip install tensorflow as seen here . Project description here |
So I have to use Note: it was working before using |
@tiruk007 The short answer is this worked. Long answer: I had been running unintentionally with cudatoolkit>=11.2 and cudnn>=8.1.0. I've swapped to the cudatoolkit>=11.8.0 conda-forge package and the nvidia-cudnn-cu11>=8.6.0.163 pip package. I noted that after running this, my /usr/lib/wsl/lib/libcuda* files got overwritten, which is a warning mentioned at NVidia's WSL User Guide . I re-ran their install instructions, to no apparent effect (same files present afterward). I also applied a Windows-side post-fix that is documented here. At this point I restarted the WSL instance and went back into Jupyter notebooks and swapped between my TF 2.11 and TF 2.12 environments, and the behavior remained the same: TF 2.11 saw the GPUS, while TF 2.12 did not. It turned out I missed the part in the TF WSL install guide where CUDNN_PATH and LD_LIBRARY_PATH get set. I had something alternative to this, which worked for TF 2.11, but does not work for TF 2.12. Once I got those lines into my env_vars.sh, it worked. |
@Adesoji1 there is no longer a separate tensorflow-gpu package. It's all packaged in tensorflow. @Monah84 I just ended up using WSL and it worked like a charm. TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Since I have windows 11, I couldn't use archived versions of NVIDIA's software. Had to go with WSL. Honestly much easier than dealing with windows anyways. |
@cfields5 but note that the latest version of tensorflow comes with the gpu installed already in the installation command pip install tensorflow and not pip install tensorflow-gpu. did you see this earlier? |
I do agree with you. Actually, I am using now the WSL and it is working perfectly as well, as you said. Even I got more benefits in this way. Some libraries are not available for windows and work with Linux systems now are available for me to use them. Thank you for sharing your feedback |
Is the support upward compatible. I installed tensorflow 2.13.0 on wsl2-ubuntu but gpu was not found. Do i have to downgrade to 2.10 |
@ogahozy senior man, I am not sure yet about 2.13 but you can downgrade. Follow this tutorial to help you with the installation https://medium.com/@soji4u2c/how-to-install-the-nvidia-cuda-driver-12-0-toolkit-cudnn-8-8-1-3-on-wsl2-in-year-2023-23165024dc16 |
Thanks sir
…On Tue, 8 Aug 2023, 5:50 pm Adesoji Alu, ***@***.***> wrote:
@ogahozy <https://github.com/ogahozy> senior man, I am not sure yet about
2.13 but you can downgrade. Follow this tutorial to help you with the
installation
***@***.***/how-to-install-the-nvidia-cuda-driver-12-0-toolkit-cudnn-8-8-1-3-on-wsl2-in-year-2023-23165024dc16
—
Reply to this email directly, view it on GitHub
<#60101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJ7EKUPJPVBNG7VMRLZDOTXUJU5VANCNFSM6AAAAAAWGZ365Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
2.12.0
Custom Code
No
OS Platform and Distribution
Windows 11 + WSL2
Mobile device
No response
Python version
3.11
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
11.8/8.4.1.50
GPU model and memory
No response
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: