-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from oelbert/feature/make_c5
Update Example Build Script for c5
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
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
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Example bash script to install Pace to run bare-metal on Gaea's c4 cluster | ||
|
||
set -e -x | ||
|
||
# module load necessary system software | ||
module rm PrgEnv-intel | ||
module load PrgEnv-gnu | ||
module rm gcc | ||
module load gcc/12.2.0 | ||
module load boost/1.79.0 | ||
module load python/3.9 | ||
|
||
# clone Pace and update submodules | ||
git clone --recursive https://github.com/NOAA-GFDL/pace | ||
cd pace | ||
|
||
# create a conda environment for pace | ||
conda create -y --name my_name python=3.8 | ||
|
||
# enter the environment and update it | ||
conda activate my_name | ||
pip3 install --upgrade pip setuptools wheel | ||
|
||
# install the Pace dependencies, GT4Py, and Pace | ||
pip3 install -r requirements_dev.txt -c constraints.txt |