Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bugfix) Change MPIRUN from mpiexec to srun for ctest #161

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading