The installed CUDA12.1 was unsuccessful

I installed CUDA 12.1, cuDNN on Windows 10 and then installed TensorFlow 2.11. The result I get with the tf.config.list_physical_devices(‘GPU’) function is []
[]

Windows 10, vs2019,I installed CUDA12,CUPIT,cuDNN for CUDA12.x. and set up the environment variables. Then pip install tensorflow, but it doesn’t work. What is the problem? I’d appreciate you.
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\extras\CUPTI\lib64;
C:\tools\CUDA\bin;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;


λ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:36:15_Pacific_Daylight_Time_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0


Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import tensorflow as tf
tf.config.list_physical_devices(‘GPU’)
[]

2023-04-24103316

@Wen_Yong,

Welcome to the Tensorflow Forum!

TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11 you will need to install TensorFlow in WSL2 or install tensorflow-cpu and optionally, try the TensorFlow-DirectML-Plugin.

Thank you!

1 Like

@chunduriv

Thank you for replying, I setup TF2.10 and CUDA11.8 as an alternative. Does this mean it has worked?

tf.config.list_physical_devices(‘GPU’)
[PhysicalDevice(name=‘/physical_device:GPU:0’, device_type=‘GPU’)]

Thank you agian!

@Wen_Yong,

Yes, it is working.

Thank you!