Skip to content

Commit 9504745

Browse files
committed
It appears that mpirun from 5 adds a space after the :.
1 parent 9620c42 commit 9504745

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/psij/launchers/scripts/mpi_launch.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ filter_err() {
2323
sed -nE 's/^\[[^]]+\]<stderr>:(.*)/\1/p'
2424
}
2525

26+
filter_out_5() {
27+
sed -nE 's/^\[[^]]+\]<stdout>: (.*)/\1/p'
28+
}
29+
30+
filter_err_5() {
31+
sed -nE 's/^\[[^]]+\]<stderr>: (.*)/\1/p'
32+
}
33+
2634
set +e
2735
if [ "$IS_OPENMPI_5" == "1" ]; then
2836
mpirun --oversubscribe --output TAG -n $_PSI_J_PROCESS_COUNT "$@" \
29-
1> >(filter_out > $_PSI_J_STDOUT) 2> >(filter_err > $_PSI_J_STDERR) <$_PSI_J_STDIN
37+
1> >(filter_out_5 > $_PSI_J_STDOUT) 2> >(filter_err_5 > $_PSI_J_STDERR) <$_PSI_J_STDIN
3038
elif [ "$IS_OPENMPI" == "1" ]; then
3139
mpirun --oversubscribe --tag-output -q -n $_PSI_J_PROCESS_COUNT "$@" \
3240
1> >(filter_out > "$_PSI_J_STDOUT") 2> >(filter_err > $_PSI_J_STDERR) <$_PSI_J_STDIN

0 commit comments

Comments
 (0)