I have a pretty common issue: tensorflow framework can't recognize available GPUs on my laptop. When i try to list available GPUs in VS Code using Python (v3.11.0):
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
print("Built with CUDA:", tf.test.is_built_with_cuda())
print("Built with GPU device support:", tf.test.is_built_with_gpu_support())
output:
Num GPUs Available: 0
Built with CUDA: False
Built with GPU device support: False
Laptop specs:
What i've done before:
pip install tensorflow[and-cuda]
Hope we'll find the solution :), if you have specific questions, please ask
TensorFlow 2.10 was the last TensorFlow release that supported GPUs on native-Windows. If you need to run on a Windows system with a newer version of TensorFlow you'll need to set up WSL2. Here's the user guide from Nvidia on setting up WSL2 for Cuda: https://docs.nvidia.com/cuda/wsl-user-guide/index.html