Skip to content

Commit

Permalink
Create Amazon GPU howto.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdhny authored Mar 24, 2017
1 parent 1fee80f commit 3dc80be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Amazon GPU howto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# How to set up GPU on EC2 instance

## Create EC2 instance

Use `p2.xlarge` instance type and `ami-e00a8180` AMI image. [Details](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html)

Open ports `22` (ssh) and `80` (http) on your freshly created instance,
you create a [security group](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
and attach it your instance to get ports open

## Launch notebook

Instance you have created contains all you need: fresh versions of theano, lasagne, CUDA driver and cuDNN,
just lunch ipython and get hands dirty:

```bash
$ sudo su
# export THEANO_FLAGS='cuda.root=/usr/local/cuda,device=gpu,floatX=float32'
# export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
# jupyter notebook
```

0 comments on commit 3dc80be

Please sign in to comment.