File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ on the node that created it.
405
405
406
406
Nested ` spmd ` calls
407
407
-------------------
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.
409
409
410
410
An example of an unsafe(wrong) way:
411
411
``` julia
@@ -451,6 +451,6 @@ function foo(d::DArray)
451
451
end
452
452
spmd (foo,.... )
453
453
```
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.
455
455
456
456
Similarly ` @everywhere ` from within a SPMD run should also be driven from the master node only.
You can’t perform that action at this time.
0 commit comments