Skip to content

Commit

Permalink
docs: usage of mpiexec()
Browse files Browse the repository at this point in the history
Suggested fix for #786
  • Loading branch information
mmesiti authored Oct 30, 2023
1 parent 7c77b2f commit 8217be9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/src/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ using Test

@testset "hello" begin
n = 2 # number of processes
mpiexec() do exe # MPI wrapper
run(`$exe -n $n $(Base.julia_cmd()) [...]/01-hello.jl`)
# alternatively:
# p = run(ignorestatus(`...`))
# @test success(p)
run(`$(mpiexec()) -n $n $(Base.julia_cmd()) [...]/01-hello.jl`)
# alternatively:
# p = run(ignorestatus(`$(mpiexec()) ...`))
# @test success(p)
end
end
```

0 comments on commit 8217be9

Please sign in to comment.