File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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.
405405
406406Nested ` 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
410410An example of an unsafe(wrong) way:
411411``` julia
@@ -451,6 +451,6 @@ function foo(d::DArray)
451451end
452452spmd (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
456456Similarly ` @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