generated from GEOS-ESM/geos-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #21 from GEOS-ESM/feature/hs_benchmark
Held Suarez benchmark
- Loading branch information
Showing
28 changed files
with
1,129 additions
and
456 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
|
||
class PipelineAction(enum.Enum): | ||
All = 0 | ||
Validation = 1 | ||
Validation = 1 | ||
Benchmark = 2 |
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 |
---|---|---|
@@ -1,17 +1,25 @@ | ||
import click | ||
from geosongpu_ci.pipeline.task import dispatch | ||
from geosongpu_ci.actions.pipeline import PipelineAction | ||
|
||
|
||
def main(): | ||
""" | ||
Expected: | ||
arg[1]: experiment name as listed in the experiments.yaml | ||
arg[2]: experiment action from PipelineAction | ||
arg[3]: artifact directory for LT storage | ||
""" | ||
import sys | ||
@click.command() | ||
@click.argument("name") | ||
@click.argument("action") | ||
@click.option("--artifact", default=".", help="Artifact directory for results storage") | ||
@click.option( | ||
"--setup_only", | ||
is_flag=True, | ||
help="Setup the experiment but skip any long running jobs (build, run...)", | ||
) | ||
def cli_dispatch(name: str, action: str, artifact: str, setup_only: bool): | ||
"""Dispatch the _NAME_ experiment (as recorded in experiments.yaml) | ||
with the _ACTION_ (from Validation, Benchmark or All). | ||
experiment_name = sys.argv[1] | ||
experiment_action = PipelineAction[sys.argv[2]] | ||
artifact_directory = sys.argv[3] | ||
dispatch(experiment_name, experiment_action, artifact_directory) | ||
Environement variable:\n | ||
CI_WORKSPACE: dispatch sets all work in this directory.""" | ||
dispatch(name, PipelineAction[action], artifact, setup_only) | ||
|
||
|
||
if __name__ == "__main__": | ||
cli_dispatch() |
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.