Unable to configure tensorflow to use GPU acceleration in Ubuntu 16.04
NickName:Timothy Rajan Ask DateTime:2020-01-05T10:35:43

Unable to configure tensorflow to use GPU acceleration in Ubuntu 16.04

I am trying to install Tensorflow in Ubuntu 16.04 ( in google cloud ). What I have done so far is created an compute instance. I have added a NVIDIA Tesla K80 to this instance.

enter image description here

Also, made sure that the proper version of tensorflow ( version 1.14.0 ) is installed and

Cuda version of 8.0 is installed and CudNN version of 6.0 is installed as per the tensorflow gpu - cuda mapping

When I run a simple tensorflow program, I get

Cannot assign a device for operation MatMul: {{node MatMul}}was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.

Can anyone please let me know where I am doing wrong. Is the instance selection is correct?

Please do let me know and thanks for your help.

Copyright Notice:Content Author:「Timothy Rajan」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59596553/unable-to-configure-tensorflow-to-use-gpu-acceleration-in-ubuntu-16-04

More about “Unable to configure tensorflow to use GPU acceleration in Ubuntu 16.04” related questions

Unable to configure tensorflow to use GPU acceleration in Ubuntu 16.04

I am trying to install Tensorflow in Ubuntu 16.04 ( in google cloud ). What I have done so far is created an compute instance. I have added a NVIDIA Tesla K80 to this instance. Also, made sure th...

Show Detail

How to install Tensorflow GPU on ubuntu 16.04

I am using AWS P2 gpu instance with Tesla K80 GPU and Ubuntu 16.04 LTS. Installing Tensorflow for CPU is easy: pip install tensorflow But Installing Tensorflow for GPU doesnt work : pip install

Show Detail

How to install Tensorflow-GPU on ubuntu

How to install Tensorflow-GPU on ubuntu 16.04 I am using GeForce-710M GPU on my laptop and UBUNTU 16.04 LTS. installing tensorflow-gpu is too hard for me and i searched a lot, but i didn't get a good

Show Detail

I'm trying to use tensorflow on my ubuntu 16.04 machine, but even after installing tensorflow gpu; I cant use gpu for my tensorflow

I'm trying to use tensorflow GPU on my ubuntu 16.04 machine. I've successfuly installed CUDA toolkit (8.0.61) and cuDNN (6.0.21). The problem is, I can't use tensorflow gpu even after this installt...

Show Detail

Is it possible to use Tensorflow on GPU in Ubuntu without switching the PRIME profile to use the GPU?

I have a Lenovo Ideapad z50-70 with Intel integrated graphics and Nvidia 840M running Ubuntu 16.04. I am able to successfully run Tensorflow programs on the Nvidia GPU when I switch the PRIME profi...

Show Detail

TensorFlow - GPU Acceleration only for training?

Will utilizing GPU Acceleration with TensorFlow increase the speed of only the training of models or will it also help improve speed while using the model on data. Most guides only talk about util...

Show Detail

Unable to use GPU processors for tensorflow LinearRegressor on Ubuntu (Titan-X pascal)

I have a (CUDA 8) - 3units of Titan-X Pascal on Ubuntu 16.04 with tensorflow v0.12. (Nvidia Driver Version: 370.28) I have trouble running any contrib.learn modules (LinearRegressor) to use the

Show Detail

tensorflow-gpu and cuDNN not properly installed on Ubuntu 16.04

I installed CUDA 8.0 on Ubuntu 16.04 (x86_64) with NVidia Geforce GTX 950M (driver 381) in an ASUS K501UX laptop. After CUDA installation, I'm able to run deviceQuery and bandwidthTest, according t...

Show Detail

Failed to install tensorflow with Ubuntu 16.04 and CUDA 8.0

Does anyone successed install TensorFlow with following combination? Ubuntu 16.04 (Just newly installed and apt upgraded) Nvidia Driver: nvidia-370 (sudo apt install nvidia-370) Bazel 0.3.1 (install

Show Detail

Tensorflow on Ubuntu 16.04 Not Installing

I'm trying to install the GPU version of Tensorflow using Virtualenv on Ubuntu 16.04 and Python 3.6 (Anaconda), but it keeps on outputting these errors tensorflow-gpu 1.7.0 requires numpy>=1.13...

Show Detail