GPU: Nvidia GeForce RTX 4070 Laptop CUDA: version 11.8 Cudnn: present
Cuda is present in the env variables path
Python: 3.10 Tensorflow: version 2.18.0
Working with poetry, however installed with pip
import tensorflow as tf
import os
print(f"CUDA: {tf.test.is_built_with_cuda()}")
gpus = tf.config.experimental.list_physical_devices('GPU')
print(f"GPUs: {gpus}")
It prints "CUDA: false" and "GPUs: []" into the terminal
- I have tried other versions of python. Did not help.
- I tried to install tensorflow-gpu, however it game an error. Additionally, most resources said the gpu support is already integrated into tensorflow.
- I did change the version of Tensorflow to be compatible with Cuda, however it still gives me an empty array