j-ax
j-ax

Reputation: 13

Tensorflow not detecting CUDA device

I am having some issues with Tensorflow, that seems not to detect my GPU.

When running some code using Tensorflow, I get the error:

tensorflow/stream_executor/cuda/cuda_driver.cc:328]

failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected

Here's my config:

My GPU is well detected (checked it with nvidia-smi) and tf.test.is_gpu_available() returns True. I tried downgrading the CUDA version and the driver but nothing changed.

Does anybody has some hints on how to solve this? Thanks a lot!

Upvotes: 1

Views: 2456

Answers (2)

Jiten Patel
Jiten Patel

Reputation: 180

The issue occurs due to TensorFlow 2.5 is compatible with. So, just downgrade (re-install) your CUDA to 11.2. https://developer.nvidia.com/cuda-11.2.0-download-archive

Upvotes: 1

user11530462
user11530462

Reputation:

You would need to install a package built with the same CUDA environment to ensure compatibility. Tensorflow 2.5 is compatible with CUDA 11.2.

Take a look at Tested build configuration

Upvotes: 1

Related Questions