From 2bd0a69984492eec1a54c71d11d42a7ea5791801 Mon Sep 17 00:00:00 2001 From: Albin Severinson Date: Tue, 20 Oct 2020 12:38:32 +0000 Subject: [PATCH] Update index.md - Changed "the the" to "the" - Changed "which is not probably what we want" to "which is probably not what we want" --- docs/src/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index d9ebfc8..fef2699 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -405,7 +405,7 @@ on the node that created it. Nested `spmd` calls ------------------- -As `spmd` executes the the specified function on all participating nodes, we need to be careful with nesting `spmd` calls. +As `spmd` executes the specified function on all participating nodes, we need to be careful with nesting `spmd` calls. An example of an unsafe(wrong) way: ```julia @@ -451,6 +451,6 @@ function foo(d::DArray) end spmd(foo,....) ``` -Without the `myid()` check, the `spmd` call to `foo` would execute `map!` from all nodes, which is not what we probably want. +Without the `myid()` check, the `spmd` call to `foo` would execute `map!` from all nodes, which is probably not what we want. Similarly `@everywhere` from within a SPMD run should also be driven from the master node only.