Skip to content

Commit b98875d

Browse files
authored
Merge pull request #226 from severinson/patch-1
Update index.md
2 parents dcae31f + 2bd0a69 commit b98875d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ on the node that created it.
405405

406406
Nested `spmd` calls
407407
-------------------
408-
As `spmd` executes the the specified function on all participating nodes, we need to be careful with nesting `spmd` calls.
408+
As `spmd` executes the specified function on all participating nodes, we need to be careful with nesting `spmd` calls.
409409

410410
An example of an unsafe(wrong) way:
411411
```julia
@@ -451,6 +451,6 @@ function foo(d::DArray)
451451
end
452452
spmd(foo,....)
453453
```
454-
Without the `myid()` check, the `spmd` call to `foo` would execute `map!` from all nodes, which is not what we probably want.
454+
Without the `myid()` check, the `spmd` call to `foo` would execute `map!` from all nodes, which is probably not what we want.
455455

456456
Similarly `@everywhere` from within a SPMD run should also be driven from the master node only.

0 commit comments

Comments
 (0)