Run GC Classic on AWS EC2
GC Classic is an OpenMP application, meaning it runs on a single node. Therefore, you do not need a complex cluster scheduler (like AWS ParallelCluster). You can simply launch a single, powerful EC2 instance using our provided Amazon Machine Image (AMI).
Available AMIs:
AMI ID |
Name |
OS |
architecture |
|---|---|---|---|
ami-096e8e151989dbfc5 |
GCC-12.3-GEOSChem |
alinux2023 |
x86_64 |
It contains a dedicated storage volume mounted at /data which contains the software environment for creating a GC Classic run directory and compiling the model.
1. Launch your EC2 Instance
Log in to the AWS Console and navigate to EC2.
Click Launch Instance.
Name: Give your instance a name (e.g., “GCC14.7-Simulation”).
Application and OS Images (AMI): Search the AMI ID in Community AMIs.
Instance Type: Recommended:
c5n.large(2 vCPUs, 5.3 GiB RAM)Key Pair: Select your SSH key pair. (Create a new .pem key pair if you don’t have one.)
Configure Security Group: Ensure the security group allows SSH access (port 22) and any other required ports for your simulation (e.g., 80, 443).
- Configure storage:
You will see two volumes listed automatically (inherited from the AMI):
Root volume (30 GB): The operating system. Do not save simulation data here.
EBS volume (100 GB minimum): Mounted at
/data. Use this directory for everything.
Tip: You should increase the size of the second volume (the
/datavolume) as you demand for your simulation.
Launch the instance. You should see your instance in the EC2 console with a status of “running”.
2. Connect and Storage Setup
SSH into your instance:
$ ssh -i your-key.pem ec2-user@<instance-ip>
Verify the Environment. The spack environment named gc-env is configured to load automatically. You can verify the compiler is ready in the spack directory /data/spack/opt/spack:
$ which gfortran
3. Download Code and Data
Now you can download the GC Classic source code and data files to your instance’s /data directory. You can follow Quickstart Guide to run GCClassic.
Warning
Do not use your home directory (~) for simulations. The root disk is small (30 GB). Always work inside /data.