Skip to content

Commit

Permalink
(bugfix) Change MPIRUN from mpiexec to srun for ctest (#161)
Browse files Browse the repository at this point in the history
* change mpiexec to srun for ctest

* remove comments
  • Loading branch information
chan-hoo authored Oct 24, 2024
1 parent 8c93fad commit 0d93612
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions sorc/test/hera_ctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source ../../versions/build.ver_hera
module use ../../modulefiles
module load build_hera_intel

export MPIRUN="srun"

ctest

wait
Expand Down
2 changes: 2 additions & 0 deletions sorc/test/hercules_ctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source ../../versions/build.ver_hercules
module use ../../modulefiles
module load build_hercules_intel

export MPIRUN="srun"

ctest

wait
Expand Down
2 changes: 2 additions & 0 deletions sorc/test/orion_ctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source ../../versions/build.ver_orion
module use ../../modulefiles
module load build_orion_intel

export MPIRUN="srun"

ctest

wait
Expand Down
7 changes: 1 addition & 6 deletions sorc/test/run_ufs_datm_lnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ fi
cp ${PATHRT}/parm/noahmptable.tbl noahmptable.tbl

# start runs
echo "Start ufs-weather-model run"
if [ "${PLATFORM}" = "hera" ] || [ "${PLATFORM}" = "orion" ] || [ "${PLATFORM}" = "hercules" ]; then
export MPIRUN="srun"
else
export MPIRUN=${MPIRUN:-`which mpiexec`}
fi
echo "Start ufs-weather-model run with ${MPIRUN}"
${MPIRUN} -n ${NPROCS_FORECAST} ./ufs_model

#
Expand Down
2 changes: 1 addition & 1 deletion sorc/test/test_letkfoi_snowda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ ln -fs $JEDI_STATICDIR ./
cp $project_source_dir/../parm/jedi/gfs-land.yaml .

#
echo "============================= calling ${JEDI_EXEC}"
echo "============================= calling ${JEDI_EXEC} with ${MPIRUN}"
${MPIRUN} -n $NPROC ${JEDI_EXEC} letkf_land.yaml

0 comments on commit 0d93612

Please sign in to comment.