📚 The CoCalc Library - books, templates and other resources
cocalc-examples / data-science-ipython-notebooks / deep-learning / tensor-flow-examples / notebooks / 4_multi_gpu / multigpu_basics.ipynb
132939 viewsLicense: OTHER
Kernel: Python 3
Basic Multi GPU Computation in TensorFlow
Credits: Forked from TensorFlow-Examples by Aymeric Damien
Setup
Refer to the setup instructions
This tutorial requires your machine to have 2 GPUs
"/cpu:0": The CPU of your machine.
"/gpu:0": The first GPU of your machine
"/gpu:1": The second GPU of your machine
For this example, we are using 2 GTX-980
In [2]:
In [3]:
In [ ]:
In [6]:
In [7]:
In [8]:
Out[8]:
Single GPU computation time: 0:00:11.833497
Multi GPU computation time: 0:00:07.085913