Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to tell if tensorflow is using gpu acceleration from inside python shell?

Asked by Anusha Acharya Apr 4, 2021 249 views 1 answer
Share

About this question

 I have installed tensorflow in my ubuntu 16.04 using the second answer here

with ubuntu's builtin apt Cuda installation.

Now my question is how can I test if tensorflow is really using GPU? I have a gtx 960m GPU. When I import tensorflow this is the output

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally 

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally 

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally 

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally 

I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.