From 8217be9d0e288829797d8de365d068f2903a9793 Mon Sep 17 00:00:00 2001 From: Michele Mesiti Date: Mon, 30 Oct 2023 18:05:55 +0100 Subject: [PATCH] docs: usage of mpiexec() Suggested fix for #786 --- docs/src/usage.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/src/usage.md b/docs/src/usage.md index 43867c590..2b8ebe49d 100644 --- a/docs/src/usage.md +++ b/docs/src/usage.md @@ -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 ```