File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
src/psij/launchers/scripts Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1515
1616pre_launch
1717
18+ filter_out () {
19+ sed -nE ' s/^\[[^]]+\]<stdout>:(.*)/\1/p'
20+ }
21+
22+ filter_err () {
23+ sed -nE ' s/^\[[^]]+\]<stderr>:(.*)/\1/p'
24+ }
25+
1826set +e
1927if [ " $IS_OPENMPI_5 " == " 1" ]; then
20- # there is no -q parameter in OMPI 5
21- mpirun --oversubscribe -n $_PSI_J_PROCESS_COUNT " $@ " 1> $_PSI_J_STDOUT 2> $_PSI_J_STDERR < $_PSI_J_STDIN
28+ 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
2230elif [ " $IS_OPENMPI " == " 1" ]; then
23- mpirun --oversubscribe -q -n $_PSI_J_PROCESS_COUNT " $@ " 1> $_PSI_J_STDOUT 2> $_PSI_J_STDERR < $_PSI_J_STDIN
31+ mpirun --oversubscribe --tag-output -q -n $_PSI_J_PROCESS_COUNT " $@ " \
32+ 1> >( filter_out > " $_PSI_J_STDOUT " ) 2> >( filter_err > $_PSI_J_STDERR ) < $_PSI_J_STDIN
2433else
2534 mpirun -n $_PSI_J_PROCESS_COUNT " $@ " 1> $_PSI_J_STDOUT 2> $_PSI_J_STDERR < $_PSI_J_STDIN
2635fi
You can’t perform that action at this time.
0 commit comments