TransWikia.com

How to install tensorflow-gpu?

Data Science Asked by Sajied Shah Yousuf on September 4, 2021

I installed cuda-11.0 and cuDNN-8.2 and Tensor-RT 7.1. And then installed tensorflow-gpu. But tf.is_gpu_available() is showing False.
Actually, I installed tensorflow-gpu first. I have pip3 20.1.1 and Nvidia GForce 930MX and Ubuntu 20.04.

Here is the nvidia-smi command output:
enter image description here

3 Answers

Tensorflow could not found gpu because, the Cuda Toolkit version was 11. But, cuDNN version was 8.2RC + cuda 11. But in Tensorflow-2.2.0 it will work when cuda toolkit and cudnn both has cuda of version 10.1. Cuda 11.0 is not supported.

Answered by Sajied Shah Yousuf on September 4, 2021

Right now Tensorflow 2.1 doesn't support CUDA 11.0. Downgrade CUDA to version 10.1 and try again.

Reference: https://www.tensorflow.org/install/gpu

Answered by Juan Camilo Fernandez on September 4, 2021

Answered by khwaja wisal on September 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP