From 86ba57e66adce5da750782c87644ae1ce8d78510 Mon Sep 17 00:00:00 2001 From: David Huber Date: Thu, 20 Feb 2025 16:36:17 +0000 Subject: [PATCH] Simplify build scripts --- sorc/build_compute.sh | 2 +- workflow/build_compute.py | 2 +- workflow/build_opts.yaml | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/sorc/build_compute.sh b/sorc/build_compute.sh index 0a56c1ba13..722c0f336d 100755 --- a/sorc/build_compute.sh +++ b/sorc/build_compute.sh @@ -87,7 +87,7 @@ finished=false ${runcmd} echo "Running builds on compute nodes" while [[ "${finished}" == "false" ]]; do - sleep 3m + sleep 1m ${runcmd} state="$("${HOMEgfs}/ci/scripts/utils/rocotostat.py" -w "${build_xml}" -d "${build_db}")" if [[ "${verbose_opt}" == "true" ]]; then diff --git a/workflow/build_compute.py b/workflow/build_compute.py index 7787e9ad40..93d2c33d43 100755 --- a/workflow/build_compute.py +++ b/workflow/build_compute.py @@ -63,7 +63,7 @@ def get_task_spec(task_name: str, task_spec: Dict, host_spec: Dict) -> Dict: task_dict.task_name = task_name task_dict.cycledef = "build" task_dict.maxtries = 1 - task_dict.command = f"cd {HOMEgfs}/sorc/; {task_spec.command}" + task_dict.command = f"cd {HOMEgfs}/sorc/; {task_spec.command} -j {task_spec.cores}" task_dict.job_name = task_name task_dict.log = f"{HOMEgfs}/sorc/logs/{task_name}.log" diff --git a/workflow/build_opts.yaml b/workflow/build_opts.yaml index c17432d4a2..c83135e94e 100644 --- a/workflow/build_opts.yaml +++ b/workflow/build_opts.yaml @@ -22,61 +22,61 @@ systems: - "gefs_ww3_prepost" build: gfs_model: - command: "./build_ufs.sh -e gfs_model.x -j 12" + command: "./build_ufs.sh -e gfs_model.x" cores: 12 walltime: "00:30:00" gfs_ww3prepost: - command: "./build_ww3prepost.sh -j 4" + command: "./build_ww3prepost.sh" cores: 4 walltime: "00:10:00" gefs_model: - command: "./build_ufs.sh -w -e gefs_model.x -j 12" + command: "./build_ufs.sh -w -e gefs_model.x" cores: 12 walltime: "00:30:00" gefs_ww3_prepost: - command: "./build_ww3prepost.sh -w -j 4" + command: "./build_ww3prepost.sh -w" cores: 4 walltime: "00:10:00" sfs_model: - command: "./build_ufs.sh -y -e sfs_model.x -j 12" + command: "./build_ufs.sh -y -e sfs_model.x" cores: 12 walltime: "00:30:00" upp: - command: "./build_upp.sh -j 8" + command: "./build_upp.sh" cores: 8 walltime: "00:10:00" gsi_enkf: - command: "./build_gsi_enkf.sh -j 8" + command: "./build_gsi_enkf.sh" cores: 8 walltime: "00:15:00" gsi_monitor: - command: "./build_gsi_monitor.sh -j 4" + command: "./build_gsi_monitor.sh" cores: 4 walltime: "00:10:00" gsi_utils: - command: "./build_gsi_utils.sh -j 6" + command: "./build_gsi_utils.sh" cores: 6 walltime: "00:10:00" ufs_utils: - command: "./build_ufs_utils.sh -j 8" + command: "./build_ufs_utils.sh" cores: 8 walltime: "00:10:00" gfs_utils: - command: "./build_gfs_utils.sh -j 6" + command: "./build_gfs_utils.sh" cores: 6 walltime: "00:10:00" gdas: - command: "./build_gdas.sh -j 24" - cores: 24 + command: "./build_gdas.sh" + cores: 40 walltime: "01:30:00"