# GPU not found for tensorflow 2.16.1

**URL:** <https://discuss.ai.google.dev/t/gpu-not-found-for-tensorflow-2-16-1/32568>\
**Category:** General Discussion\
**Tags:** cuda, nvidia, 216, gpu-comptibilty\
**Created:** [March 26, 2024, 2:51am UTC](https://discuss.ai.google.dev/t/gpu-not-found-for-tensorflow-2-16-1/32568 "2024-03-26T02:51:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kappa\_Sama](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kappa_sama/32/17164_2.png) [@Kappa\_Sama](https://discuss.ai.google.dev/u/Kappa_Sama)\
**Post date:** [March 26, 2024, 2:51am UTC](https://discuss.ai.google.dev/t/gpu-not-found-for-tensorflow-2-16-1/32568/1 "2024-03-26T02:51:00Z")

</div>

GPU not found for tensorflow 2.16.1

```auto
python == 3.10

```

nvidia-smi

```auto
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15 Driver Version: 550.54.15 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:01:00.0 On | N/A |
| 57% 46C P8 43W / 370W | 438MiB / 10240MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1463 G /usr/lib/xorg/Xorg 150MiB |
| 0 N/A N/A 1730 G /usr/bin/gnome-shell 96MiB |
| 0 N/A N/A 3753 G ...irefox/4033/usr/lib/firefox/firefox 180MiB |
+-----------------------------------------------------------------------------------------+

```

```auto
cuda-toolkit-12-4
cudnn9-cuda-12 (9.0.0.312-1).

```

```auto
tensorflow[and-cuda] == 2.16.1

```

check tensorflow

```auto
2024-03-23 18:59:31.306665: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-23 18:59:31.841802: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2024-03-23 18:59:32.211521: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[]

```

I can’t figure out what the problem is. In terms of compatibility everything seems to be good

---

<div class="post-metadata">

**Author:** ![Kappa\_Sama](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kappa_sama/32/17164_2.png) [@Kappa\_Sama](https://discuss.ai.google.dev/u/Kappa_Sama)\
**Post date:** [March 26, 2024, 7:19am UTC](https://discuss.ai.google.dev/t/gpu-not-found-for-tensorflow-2-16-1/32568/3 "2024-03-26T07:19:54Z")

</div>

Solved. Problem in compatibility. Tensorflow not working with CUDA 12.4

---

<div class="post-metadata">

**Author:** ![Laurent\_Berger](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/laurent_berger/32/16808_2.png) [@Laurent\_Berger](https://discuss.ai.google.dev/u/Laurent_Berger)\
**Post date:** [March 26, 2024, 9:02am UTC](https://discuss.ai.google.dev/t/gpu-not-found-for-tensorflow-2-16-1/32568/5 "2024-03-26T09:02:18Z")

</div>

Did you manage to run tf 2.16.1?

I tried but I go back to tf 2.15.1 with cuda 12.1
