Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Jupyter Notebook to run on GPU?

Tags:

gpu

In Google Collab you can choose your notebook to run on cpu or gpu environment. Now I have a laptop with NVDIA Cuda Compatible GPU 1050, and latest anaconda. How to have similiar feature to the collab one where I can simply make my python to run on GPU?

like image 370
Hari Prasad Avatar asked Jun 23 '18 14:06

Hari Prasad


People also ask

Is Jupyter using GPU?

A Jupyter-Lab environment uses the NVLink Timeline and GPU Utilization dashboards under the Linux command line so they can be monitored to measure deep-learning executions from multiple GPUs.

How do I enable GPU in Python?

Installation: First, make sure that Nvidia drivers are upto date also you can install cudatoolkit explicitly from here. then install Anaconda add anaconda to the environment while installing. After completion of all the installations run the following commands in the command prompt.


1 Answers

I am answering my own question. Easiest way to do is use connect to Local Runtime (https://research.google.com/colaboratory/local-runtimes.html) then select hardware accelerator as GPU as shown in (https://medium.com/deep-learning-turkey/google-colab-free-gpu-tutorial-e113627b9f5d).

like image 107
Hari Prasad Avatar answered Oct 01 '22 05:10

Hari Prasad