forked from mdekauwe/CABLE_benchmarking
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #312 from CABLE-LSM/300-add-connection-to-meorg_cl…
…ient-to-successful-run 300 add connection to meorg client to successful run
- Loading branch information
Showing
19 changed files
with
349 additions
and
35 deletions.
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
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
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
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,43 @@ | ||
#!/bin/bash | ||
#PBS -l wd | ||
#PBS -l ncpus={{num_threads}} | ||
#PBS -l mem={{mem}} | ||
#PBS -l walltime={{walltime}} | ||
#PBS -q copyq | ||
#PBS -P {{project}} | ||
#PBS -j oe | ||
#PBS -m e | ||
#PBS -l storage={{storage_str}} | ||
|
||
module purge | ||
{% for module in modules -%} | ||
module load {{module}} | ||
{% endfor %} | ||
set -ev | ||
|
||
# Set some things | ||
DATA_DIR={{data_dir}} | ||
NUM_THREADS={{num_threads}} | ||
MODEL_OUTPUT_ID={{model_output_id}} | ||
CACHE_DELAY={{cache_delay}} | ||
MEORG_BIN={{meorg_bin}} | ||
|
||
{% if purge_outputs %} | ||
# Purge existing model outputs | ||
echo "Purging existing outputs from $MODEL_OUTPUT_ID" | ||
$MEORG_BIN file detach_all $MODEL_OUTPUT_ID | ||
{% endif %} | ||
|
||
# Upload the data | ||
echo "Uploading data to $MODEL_OUTPUT_ID" | ||
$MEORG_BIN file upload $DATA_DIR/*.nc -n $NUM_THREADS --attach_to $MODEL_OUTPUT_ID | ||
|
||
# Wait for the cache to transfer to the object store. | ||
echo "Waiting for object store transfer ($CACHE_DELAY sec)" | ||
sleep $CACHE_DELAY | ||
|
||
# Trigger the analysis | ||
echo "Triggering analysis on $MODEL_OUTPUT_ID" | ||
$MEORG_BIN analysis start $MODEL_OUTPUT_ID | ||
|
||
echo "DONE" |
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,53 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
CABLE_REPO="git@github.com:CABLE-LSM/CABLE.git" | ||
CABLE_DIR=/scratch/$PROJECT/$USER/benchcab/CABLE | ||
|
||
TEST_DIR=/scratch/$PROJECT/$USER/benchcab/integration | ||
EXAMPLE_REPO="git@github.com:CABLE-LSM/bench_example.git" | ||
|
||
# Remove CABLE and test work space, then recreate | ||
rm -rf $CABLE_DIR | ||
mkdir -p $CABLE_DIR | ||
|
||
rm -rf $TEST_DIR | ||
mkdir -p $TEST_DIR | ||
|
||
# Clone local checkout for CABLE | ||
git clone $CABLE_REPO $CABLE_DIR | ||
cd $CABLE_DIR | ||
|
||
# Clone the example repo | ||
git clone $EXAMPLE_REPO $TEST_DIR | ||
cd $TEST_DIR | ||
git reset --hard 9bfba54ee8bf23141d95b1abe4b7207b0f3498e2 | ||
|
||
cat > config.yaml << EOL | ||
project: $PROJECT | ||
realisations: | ||
- repo: | ||
local: | ||
path: $CABLE_DIR | ||
- repo: | ||
git: | ||
branch: main | ||
modules: [ | ||
intel-compiler/2021.1.1, | ||
netcdf/4.7.4, | ||
openmpi/4.1.0 | ||
] | ||
fluxsite: | ||
experiment: AU-Tum | ||
pbs: | ||
storage: | ||
- scratch/$PROJECT | ||
- gdata/$PROJECT | ||
# This ID is currently configured on the me.org server. | ||
meorg_model_output_id: Sss7qupAHEZ8ovbCv | ||
EOL | ||
|
||
benchcab run -v |
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
Oops, something went wrong.