Skip to content

Commit

Permalink
Specific args for OpenMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Jan 24, 2022
1 parent 0718951 commit 26fd2f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/mpi/mpiexec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ function run_mpi_driver(;procs,file)
testdir = joinpath(mpidir,"..")
repodir = joinpath(testdir,"..")
mpiexec() do cmd
run(`$cmd -n $procs --oversubscribe $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
if MPI.MPI_LIBRARY == MPI.OpenMPI
run(`$cmd -n $procs --allow-run-as-root --oversubscribe $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
else
run(`$cmd -n $procs $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
end
@test true
end
end

0 comments on commit 26fd2f8

Please sign in to comment.