forked from yandexdataschool/Practical_RL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|