I am facing an issue where TensorFlow (v2.16.1, Python 3.9.19, 64-bit) does not recognize my GPU (NVIDIA GeForce RTX 2080 Ti). I have installed CUDA Toolkit v11.8 and cuDNN v8.6 (with the required files copied to the proper CUDA subdirectories), and I confirmed that my system’s PATH only includes CUDA 11.8 paths.
When running nvidia-smi, it shows CUDA 12.8 (reflecting the driver’s compatibility). I have also installed the latest Microsoft Visual C++ Redistributable, verified that my CPU supports AVX, and ensured there are no conflicting Python/TensorFlow installations. Despite all these steps, TensorFlow only detects the CPU.
Why does TensorFlow still not recognize my GPU?