Skip to content

Commit

Permalink
Add derecho in
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Oct 19, 2023
1 parent 591bdc4 commit 944dfc7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions python/ctsm/machine_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@
)
},
),
"derecho": MachineDefaults(
job_launcher_type=JOB_LAUNCHER_QSUB,
scratch_dir=os.path.join(os.path.sep, "glade", "derecho", "scratch", get_user()),
baseline_dir=os.path.join(os.path.sep, "glade", "p", "cgd", "tss", "ctsm_baselines"),
account_required=True,
create_test_retry=0,
create_test_queue="regular",
job_launcher_defaults={
JOB_LAUNCHER_QSUB: QsubDefaults(
queue="regular",
walltime="11:50:00",
extra_args="",
# The following assumes a single node, with a single mpi proc; we may want
# to add more flexibility in the future, making the node / proc counts
# individually selectable
required_args="-l select=1:ncpus=128:mpiprocs=1 -V -r n -l inception=login -k oed",
)
},
),
"hobart": MachineDefaults(
job_launcher_type=JOB_LAUNCHER_QSUB,
scratch_dir=os.path.join(os.path.sep, "scratch", "cluster", get_user()),
Expand Down
2 changes: 2 additions & 0 deletions python/ctsm/machine_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _machine_from_hostname(hostname):
"""
if re.match(r"cheyenne\d+", hostname):
machine = "cheyenne"
elif re.match(r"derecho\d+", hostname):
machine = "derecho"
else:
machine = hostname

Expand Down

0 comments on commit 944dfc7

Please sign in to comment.