The best way to do this is through Docker. We have a public AMI with the preliminary CUDA drivers installed: ami-c12f86a1. Start a P2/G2 GPU instance with this AMI and run the nvidia-docker command above to get started.