Sunday, 9 July 2023

Tensorflow does not detect GPU altough the GPU driver and Cuda are installed

I have an Nvidia GPU (Geforce RTX 3090) and the driver is displayed in Nvidia Control Panel. I also have installed the latest version of Cuda. However, when using the following code in Python with TensorFlow:

gpus = tf.config.list_physical_devices('GPU')
if not gpus:
    print("No GPUs detected")
else:
    print("GPUs detected:")
    for gpu in gpus:
        print(gpu)

It always shows me, that no GPU is detected. Can you tell me what I have to do in order to make Tensorflow use the GPU?

Reminder: Does anyone have any suggestion as to what I can do in order to make Tensorflow detect and use the GPU? I'll highly appreciate every comment.



from Tensorflow does not detect GPU altough the GPU driver and Cuda are installed

No comments:

Post a Comment