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.
2 parents a1ac47d + c60ecf6 commit 66df256Copy full SHA for 66df256
README.md
@@ -56,10 +56,11 @@ To execute code with MPI calls on all workers, use `@mpi_do`.
56
`@mpi_do manager expr` executes `expr` on all processes that are part of `manager`.
57
58
For example:
59
-```
+```julia
60
@mpi_do manager begin
61
+ using MPI
62
comm=MPI.COMM_WORLD
- println("Hello world, I am $(MPI.Comm_rank(comm)) of $(MPI.Comm_size(comm))"))
63
+ println("Hello world, I am $(MPI.Comm_rank(comm)) of $(MPI.Comm_size(comm))")
64
end
65
```
66
executes on all MPI workers belonging to `manager` only
0 commit comments