This page imported from: /afs/bu.edu/cwis/webuser/web/s/c/scv/documentation/tutorials/MPI/alliance/communicators/codes/comm_split_example.html
Example on Usages of MPI_Comm_split
The objectives of this example is to demonstrate the usage of MPI_Comm_split.
|
Output
|
Graphically, the last two examples yield he following:
(0) (0) |
(1) (1) |
(2) (2) |
(3) (3) |
(4) (0) |
(5) (1) |
---|
(0) (2) |
(1) (0) |
(2) (3) |
(3) (1) |
(4) (0) |
(5) (1) |
---|
where the numbers in black denote MPI_COMM_WORLD rank number
while the numbers in green represent the rank number of the
two respective new groups.