Skip to content

Commit 3487da6

Browse files
authored
docs: usage of mpiexec() (#787)
Suggested fix for #786
1 parent 7c77b2f commit 3487da6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/src/usage.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ using Test
111111

112112
@testset "hello" begin
113113
n = 2 # number of processes
114-
mpiexec() do exe # MPI wrapper
115-
run(`$exe -n $n $(Base.julia_cmd()) [...]/01-hello.jl`)
116-
# alternatively:
117-
# p = run(ignorestatus(`...`))
118-
# @test success(p)
114+
run(`$(mpiexec()) -n $n $(Base.julia_cmd()) [...]/01-hello.jl`)
115+
# alternatively:
116+
# p = run(ignorestatus(`$(mpiexec()) ...`))
117+
# @test success(p)
119118
end
120119
end
121120
```

0 commit comments

Comments
 (0)