@@ -289,13 +289,19 @@ later.
289
289
290
290
The following primitives can be used in SPMD mode.
291
291
292
- ` sendto(pid, data; tag=nothing) ` - sends ` data ` to ` pid `
293
- ` recvfrom(pid; tag=nothing) ` - receives data from ` pid `
294
- ` recvfrom_any(; tag=nothing) ` - receives data from any ` pid `
295
- ` barrier(;pids=procs(), tag=nothing) ` - all tasks wait and then proceeed
296
- ` bcast(data, pid; tag=nothing, pids=procs()) ` - broadcasts the same data over ` pids ` from ` pid `
297
- ` scatter(x, pid; tag=nothing, pids=procs()) ` - distributes ` x ` over ` pids ` from ` pid `
298
- ` gather(x, pid; tag=nothing, pids=procs()) ` - collects data from ` pids ` onto worker ` pid `
292
+ - ` sendto(pid, data; tag=nothing) ` - sends ` data ` to ` pid `
293
+
294
+ - ` recvfrom(pid; tag=nothing) ` - receives data from ` pid `
295
+
296
+ - ` recvfrom_any(; tag=nothing) ` - receives data from any ` pid `
297
+
298
+ - ` barrier(;pids=procs(), tag=nothing) ` - all tasks wait and then proceeed
299
+
300
+ - ` bcast(data, pid; tag=nothing, pids=procs()) ` - broadcasts the same data over ` pids ` from ` pid `
301
+
302
+ - ` scatter(x, pid; tag=nothing, pids=procs()) ` - distributes ` x ` over ` pids ` from ` pid `
303
+
304
+ - ` gather(x, pid; tag=nothing, pids=procs()) ` - collects data from ` pids ` onto worker ` pid `
299
305
300
306
Tag ` tag ` should be used to differentiate between consecutive calls of the same type, for example,
301
307
consecutive ` bcast ` calls.
0 commit comments