Ansible provision scripts for configuration of an Amazon EC2 GPU P2 instance.
These provision scripts should be applied to an EC2 P2 GPU instance configured with an Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-47a23a30 machine image.
The following software is installed on the instance:
- common; regular packages like java8, git, curl, make, etc.
- cuda; Nvidia drivers, CUDA 8.0, CUDNN 5.1
- tools; Anaconda (python 3), Theano, TensorFlow, Keras, MXNet
To allow the installation of the NVIDIA® cuDNN – GPU Accelerated Deep Learning libraries, please download the binaries from https://developer.nvidia.com/cudnn.
Perform the following steps to successfully install the instance using the ansible playbook:
- Make sure ansible is installed (preferably in python 2 environment, if not install using
pip install ansible
). - Add the cudnn-8.0-linux-x64-v5.1.tgz file to the roles/gpu/files/-folder.
- Add the public ip or dns of the instance to the hosts file.
- Add the path of the pem key file to the ansible.cfg file.
- Run the playbook from the root of this repository by executing:
ansible-playbook gpu-instance.yml
.
Jupyter notebook is by default installed and started during bootup of the instance:
- Make sure you setup the security group such that port 9999 is exposed to you local ip.
- Open your browser and got to the following url https://public_ip:9999
- Ignore the ssl certificate warning and login with the default password
accelerator