Skip to content

Commit

Permalink
[mpiexecjl] Return exit code of the mpiexec process
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Jun 13, 2024
1 parent 7b97da7 commit f5ade2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/mpiexecjl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ fi
SCRIPT='
using MPI
ENV["JULIA_PROJECT"] = dirname(Base.active_project())
mpiexec(exe -> run(`$exe $ARGS`))
proc = run(pipeline(`$(mpiexec()) $(ARGS)`; stdout, stderr); wait=false)
wait(proc)
if !iszero(proc.exitcode)
@error "The MPI process failed" proc
end
exit(proc.exitcode)
'

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

0 comments on commit f5ade2b

Please sign in to comment.