Ex. 1 master_worker instructions
This commit is contained in:
parent
32176938f3
commit
77d9142b6f
13
Exercises/ex_2/ring.txt
Normal file
13
Exercises/ex_2/ring.txt
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
Exercise: Rotating information around a ring
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- A set of processes are arranged in a ring.
|
||||
|
||||
- Each process stores its rank in MPI_COMM_WORLD in an integer.
|
||||
|
||||
- Each process passes this on to its neighbour on the right.
|
||||
|
||||
- Keep passing what is received until the own rank is back where it started.
|
||||
|
||||
- Each processor calculates the sum of the values.
|
Loading…
Reference in New Issue
Block a user