Skip to content

Commit

Permalink
fix: allow for arguments within mpi launcher override (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Nov 1, 2023
1 parent 74338de commit c70718d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_fms/test-lib.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ mpirun () {
# Set the name of the mpi launcher for use in test scripts.
local mpi_launcher='@MPI_LAUNCHER@'
local oversubscribe='@OVERSUBSCRIBE@'
# need to strip off any args that may be included with MPI_LAUNCHER arg for check below to work
local mpi_cmd="`echo $mpi_launcher | awk '{print $1;}'`"
# Check if running with MPI: if so, the mpi_launcher will point to a command
command -v "$mpi_launcher" 2>&1 > /dev/null
command -v "$mpi_cmd" 2>&1 > /dev/null
if test $? -eq 0
then
# use `command` to keep from reusing this function
Expand Down

0 comments on commit c70718d

Please sign in to comment.