From 086e2737f9a631bdc085281cd4431b3032dc1e0b Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Thu, 20 Jun 2024 19:05:35 +0000 Subject: [PATCH] ctest updates for orion rocky 9 (#754) --- regression/regression_var.sh | 2 +- ush/detect_machine.sh | 7 ++++--- ush/sub_orion | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/regression/regression_var.sh b/regression/regression_var.sh index aebbccab8b..7eb3dad2b2 100755 --- a/regression/regression_var.sh +++ b/regression/regression_var.sh @@ -40,7 +40,7 @@ elif [[ -d /ncrc ]]; then # Gaea export machine="Gaea" elif [[ -d /data/prod ]]; then # S4 export machine="S4" -elif [[ -d /work && $(hostname) =~ "Orion" ]]; then # Orion +elif [[ -d /work && $(hostname) =~ "orion" ]]; then # Orion export machine="Orion" elif [[ -d /work && $(hostname) =~ "hercules" ]]; then # Hercules export machine="Hercules" diff --git a/ush/detect_machine.sh b/ush/detect_machine.sh index 683ee0db7f..3d28818768 100755 --- a/ush/detect_machine.sh +++ b/ush/detect_machine.sh @@ -1,5 +1,6 @@ #!/bin/bash +set -x # The authoritative copy of this script lives in the ufs-weather-model at: # https://github.com/ufs-community/ufs-weather-model/blob/develop/tests/detect_machine.sh # If any local modifications are made or new platform support added, @@ -33,7 +34,7 @@ case $(hostname -f) in fe[1-8]) MACHINE_ID=jet ;; ### jet01-8 tfe[12]) MACHINE_ID=jet ;; ### tjet1-2 - Orion-login-[1-4].HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion1-4 + [Oo]rion-login-[1-4].HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion1-4 [Hh]ercules-login-[1-4].[Hh][Pp][Cc].[Mm]s[Ss]tate.[Ee]du) MACHINE_ID=hercules ;; ### hercules1-4 @@ -75,8 +76,8 @@ elif [[ -d /scratch1 ]]; then MACHINE_ID=hera elif [[ -d /work ]]; then # We are on MSU Orion or Hercules - if [[ -d /apps/other ]]; then - # We are on Hercules + mount=$(findmnt -n -o SOURCE /home) + if [[ ${mount} =~ "hercules" ]]; then MACHINE_ID=hercules else MACHINE_ID=orion diff --git a/ush/sub_orion b/ush/sub_orion index b810576379..c36e921d80 100755 --- a/ush/sub_orion +++ b/ush/sub_orion @@ -119,14 +119,13 @@ echo "export ntasks=$(( $nodes * $procs ))" >> $cfile echo "export ppn=$procs" >> $cfile echo "export threads=$threads" >> $cfile echo "export OMP_NUM_THREADS=$threads" >> $cfile -##echo "export OMP_STACKSIZE=2048M" >> $cfile echo "ulimit -s unlimited" >> $cfile echo "" >>$cfile echo ". "$(awk '{ print $1, $2, $3, $4, $5, $6, $7, $8, $9 }' $regdir/regression_var.out) >>$cfile echo "" >>$cfile -echo ". /apps/lmod/lmod/init/sh" >> $cfile +echo ". /apps/other/lmod/lmod/init/sh" >> $cfile echo "module purge" >> $cfile echo "module use $modulefiles" >> $cfile echo "module load gsi_orion.intel" >> $cfile