File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
src/psij/launchers/scripts Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1616pre_launch
1717
1818filter_out () {
19- sed -nE ' s/^\[[^]]+\]<stdout>:(.*)/\1/p'
20- }
21-
22- filter_err () {
23- sed -nE ' s/^\[[^]]+\]<stderr>:(.*)/\1/p'
19+ # must start with [n,n]<stdout>:
20+ # may contain one or more [n,n]<stdout>: lodged into the line
21+ sed -nE ' s/^\[[^]]+\]<std[oe][ur][tr]>:(.*)/\1/p' | sed -E ' s/\[[^]]+\]<std[oe][ur][tr]>://g'
2422}
2523
2624filter_out_5 () {
27- sed -nE ' s/^\[[^]]+\]<stdout>: (.*)/\1/p'
28- }
29-
30- filter_err_5 () {
31- sed -nE ' s/^\[[^]]+\]<stderr>: (.*)/\1/p'
25+ sed -nE ' s/^\[[^]]+\]<std[oe][ur][tr]>: (.*)/\1/p'
3226}
3327
3428set +e
3529if [ " $IS_OPENMPI_5 " == " 1" ]; then
3630 mpirun --oversubscribe --output TAG -n $_PSI_J_PROCESS_COUNT " $@ " \
37- 1> >( filter_out_5 > $_PSI_J_STDOUT ) 2> >( filter_err_5 > $_PSI_J_STDERR ) < $_PSI_J_STDIN
31+ 1> >( filter_out_5 > $_PSI_J_STDOUT ) 2> >( filter_out_5 > $_PSI_J_STDERR ) < $_PSI_J_STDIN
3832elif [ " $IS_OPENMPI " == " 1" ]; then
3933 mpirun --oversubscribe --tag-output -q -n $_PSI_J_PROCESS_COUNT " $@ " \
40- 1> >( filter_out > " $_PSI_J_STDOUT " ) 2> >( filter_err > $_PSI_J_STDERR ) < $_PSI_J_STDIN
34+ 1> >( filter_out > " $_PSI_J_STDOUT " ) 2> >( filter_out > $_PSI_J_STDERR ) < $_PSI_J_STDIN
4135else
4236 mpirun -n $_PSI_J_PROCESS_COUNT " $@ " 1> $_PSI_J_STDOUT 2> $_PSI_J_STDERR < $_PSI_J_STDIN
4337fi
You can’t perform that action at this time.
0 commit comments