I am using Tensorflow on Windows, and I am trying to use my GPU. But Tensorflow seems unable to detect my GPU.
I created a Python virtual environment and installed Python (3.8) and TensorFlow. My environment is:
- NVIDIA GeForce RTX 3080 GPUs (10+10)
- Processor: Intel Xeon Gold 6348 CPU @ 2,60GHz, 3.50GHz
- RAM: 512 GB
- NVIDIA driver version=511.65
- CUDA Version: 11.6 Cudnn: 9.0.0 (I think it is wrong, I need to downgrade it to 8.9?)
- Microsoft Visual Studio 2019
When I type
>nvidia-smi
>nvcc-V
both work. However, when I try to use:
print("Num GPUs Available: ",
len(tf.config.experimental.list_physical_devices('GPU')))
I get the output:
Num GPUs Available: 0
I do not understand. Also, the link does not provide updated Cuda and Python versions in Windows. Do I need to downgrade everything? Cuda and drivers as well? How do I fix it?
Even after downgrading the NVIDIA drivers and CUDA to 460.82 and 11.2 *(This failed; it says it is not compatible, had to install 11.6 again) (according to this) it does not work.
What else can I do?