Skip to content

Commit

Permalink
[mpiexecjl] Return exit code of the root rank
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Jun 4, 2024
1 parent 7b97da7 commit 3dc1925
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/mpiexecjl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ fi
SCRIPT='
using MPI
ENV["JULIA_PROJECT"] = dirname(Base.active_project())
mpiexec(exe -> run(`$exe $ARGS`))
mpiexec()
p = mpiexec(exe -> run(pipeline(`$(exe) $(ARGS)`; stdout, stderr); wait=false))
wait(p)
exit(p.exitcode)
'

if [ -n "${PROJECT_ARG}" ]; then
Expand Down

0 comments on commit 3dc1925

Please sign in to comment.