We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a851bfd commit f3b2c21Copy full SHA for f3b2c21
docs/src/usage.md
@@ -88,3 +88,23 @@ should confirm your MPI implementation to have the ROCm support (AMDGPU) enabled
88
your ROCm-aware MPI implementation to use multiple AMD GPUs (one GPU per rank).
89
90
The status of ROCm (AMDGPU) support cannot currently be queried.
91
+
92
+## Writing MPI tests
93
94
+It is recommended to use the `mpiexec()` wrapper when writing your package tests in `runtests.jl`:
95
96
+```julia
97
+# test/runtests.jl
98
+using MPI
99
+using Test
100
101
+@testset "hello" begin
102
+ n = 2 # number of processes
103
+ mpiexec() do exe # MPI wrapper
104
+ run(`$exe -n $n $(Base.julia_cmd()) [...]/01-hello.jl`)
105
+ # alternatively:
106
+ # p = run(ignorestatus(`...`))
107
+ # @test success(p)
108
+ end
109
+end
110
+```
0 commit comments