The Amazon Elastic Compute Cloud (Amazon EC2) provides resizable compute capacity in the cloud. EC2 offers a wide selection of instance types optimized to fit different use cases. For GPU applications, the g2.2xlarge instance has 8 CPU core and 1 GRID K520 GPU, the larger g2.8xlarge instance has 32 CPU cores and 4 GRID K520 GPUs.
To simplify the utilization of Alea GPU on EC2 we created two community AMIs (Amazon Machine Images) with up to date CUDA drivers and pre-installed tools so that you can start using Alea GPU right away:
- win2012r2-cuda70-vsc2013 with AMI ID ami-ab1ef4c0 is Windows Server 2012 R2 image with Visual Studio 2013 Community Edition and TightVNC server.
- ubuntu14.04-cuda70-mono with AMI ID ami-670ee40c is an Ubuntu Trusty Tahr 14.04 image and comes with Mono.
On both AMIs an up to date GRID GPU driver and the CUDA toolkit 7.0 is installed. The AMIs can be used out of the box to experiment with Alea GPU on either Windows or Linux.
The AMIs are available in the geographic location US East (N. Virginia).
Using GRID K520 GPUs on Windows
On Windows the GRID K520 GPUs do not support the TCC mode, which means that they cannot be used with a Remote Desktop connection. The simple way out is to use a VNC server or TeamViewer. The AMI win2012r2-cuda70-vsc2013 has therefore TightVNC server pre-installed. It is launched at system boot time as a Windows service. The VNC server listens on port 5900. The password for connection and configuration is vncxyz. These settings can be changed easily after booting.
Booting an Instance of the Windows AMI win2012r2-cuda70-vsc2013
We assume that you have an AWS account and that you created a key pair.
Here are the steps to launch an instance of the AMI win2012r2-cuda70-vsc2013:
- Log on to the AWS console and select the EC2 Dashboard. If you do not yet have a key pair select Key Pairs under Network & Security and follow the instructions. Also make sure that you selected the geographic location US East (N. Virginia) (or any other location on which the AMIs are available) in the top right corner.
Launch Instancebutton to get to the Quick Start wizard.
- Select the Community AMIs and enter win2012r2-cuda70-vsc2013 in the search field. Press Select.
- Scroll down to find the G2 instances. Select either g2.2xlarge or g2.8xlarge. Note that both instances are paid. Press Next: Configure Instance Details.
- Choose the Purchasing options. Spot instances are usually less expensive but may not be available immediately or may be interrupted if the spot price rises above the user supplied spot price limit. Also note that instances purchased at spot price cannot be stopped. Press Next: Add Storage.
- Increase the partition size or add additional storage as required. Skip Next: Tag Instance and proceed to Configure Security Group
- Create a security group with custom TCP rule for port 5900 or port range 5900-5910. This is required to connect via VNC to the instance. The RDP port rule for port 3389 is added by default. Press Review and Launch.
- Review your settings and press Launch.
- Choose your key pair for this instance. Press Launch Instances.
- The Launch Status window appears. Press View Instances.
- The instance boot process takes some time. After successful booting the instance is visible under Instances. Select the desired instance and press Connect.
- A popup window appears where you can download the Remote Desktop File and get the password to connect to the instance.
- To decrypt the password you have to supply the private key file that you generated at the beginning.
- To decrypt the password you have to supply the private key file that you generated at the beginning. Press Decrypt Password to get the Administrator password.
- Start a VNC client, such as TightVNC and connect to the instance. Enter the IP address followed by the port number 5900 and press Connect.
- Supply the password vncxyz.
- Send Ctrl-Alt-Del.
- Provide the password that you decrypted before. You may start the on screen keyboard if you have difficulties to enter the special characters in the password.
- Once connected, start a command line console and execute nvidia-smi to verify if the GRID K520 GPUs are visible.
Booting an Instance of the Ubuntu AMI ubuntu14.04-cuda70-mono
Linux does not have the issue with the TCC mode.
Starting a instance of the Ubuntu AMI is very similar. The main difference is that the security group has to have a port rule for SSH on port 22. Then you connect directly with ssh to the instance.
If you want to experiment with the CUDA debugger use the Windows AMI win2012r2-cuda70-vsc2013 with pre-installed Visual Studio 2013 Community Edition.
Exploring Alea GPU
Now you can start exploring Alea GPU.
Important: the GRID K520 GPU is an enterprise GPU. Send us a mail to support(at)quantalea.com or sales(at)quantalea.com to request a temporary demo license.