# Tensorflow on GPU supported on native-Windows

**URL:** <https://discuss.ai.google.dev/t/tensorflow-on-gpu-supported-on-native-windows/49111>\
**Category:** TensorFlow\
**Tags:** windows, build-and-install\
**Created:** [November 13, 2024, 12:12pm UTC](https://discuss.ai.google.dev/t/tensorflow-on-gpu-supported-on-native-windows/49111 "2024-11-13T12:12:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agarwalamit081](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/agarwalamit081/32/29151_2.png) [@agarwalamit081](https://discuss.ai.google.dev/u/agarwalamit081)\
**Post date:** [November 13, 2024, 12:12pm UTC](https://discuss.ai.google.dev/t/tensorflow-on-gpu-supported-on-native-windows/49111/1 "2024-11-13T12:12:02Z")

</div>

Hi there,  
I have a few questions. For installing tensorflow on Windows with NVIDIA GPU, it is mentioned:  
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0

It also says  
TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows.  
Starting with TensorFlow 2.11, you will need to install TensorFlow in WSL2

My question is whether TensorFlow 2.10 will work with an upgraded CUDA 12.4 and cuDNN SDK 8.9.

As for Tensorflow in WSL2, will the command: pip install tensorflow[and-cuda]  
install the latest version of tensorflow, ie: 2.18? or it would depend on the CUDA/Python versions on WSL2?

Regards,  
Amit Agarwal

---

<div class="post-metadata">

**Author:** ![Kiran\_Sai\_Ramineni](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kiran_sai_ramineni/32/8859_2.png) [@Kiran\_Sai\_Ramineni](https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni)\
**Post date:** [November 13, 2024, 1:14pm UTC](https://discuss.ai.google.dev/t/tensorflow-on-gpu-supported-on-native-windows/49111/3 "2024-11-13T13:14:06Z")

</div>

> [@agarwalamit081](#):
>
> My question is whether TensorFlow 2.10 will work with an upgraded CUDA 12.4 and cuDNN SDK 8.9.

Hi @agarwalamit081, It is recommended to use the test build configuration for the smooth installation.

> [@agarwalamit081](#):
>
> As for Tensorflow in WSL2, will the command: pip install tensorflow[and-cuda]  
> install the latest version of tensorflow, ie: 2.18?

By installing using this `pip install tensorflow[and-cuda]` command the latest version of tensorflow 2.18 and the cuda packages supported for tensorflow will be installed.

> [@agarwalamit081](#):
>
> it would depend on the CUDA/Python versions on WSL2?

It would also depends on Python version. so you have to install the Python version as per the test build configuration. Thank You.

---

<div class="post-metadata">

**Author:** ![agarwalamit081](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/agarwalamit081/32/29151_2.png) [@agarwalamit081](https://discuss.ai.google.dev/u/agarwalamit081)\
**Post date:** [November 13, 2024, 1:52pm UTC](https://discuss.ai.google.dev/t/tensorflow-on-gpu-supported-on-native-windows/49111/4 "2024-11-13T13:52:49Z")

</div>

Thanks for the clarifications.
