Tensorflow does not recognize my GPU

I am trying:


print("GPU available:", tf.config.list_physical_devices('GPU'))
print("GPU device:", tf.config.list_physical_devices('GPU'))
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
print(tf.test.gpu_device_name())

and this is what I get:

GPU available: []
GPU device: []
Num GPUs Available:  0

And I don´t know why. Python 3.12.2, tensorflow 2.16.1, cuda 12.4.

Hi @Roovie, Thank you for reporting this issue. While reproducing this we have observed the same. And this is the known issue and i can see there was an issue raised for the same in Tensorflow GitHub repository. Could you please follow this issue to get the updates. Thank You.