Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 682 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 682 Bytes

Communicators and collectives

In this exercise we combine collective communcation with user defined communicators. Write a program for four MPI processes, such that each process has a data vector with the following data:

In addition, each task has a receive buffer for eight elements and the values in the buffer are initialized to -1.

Implement now a pattern with user defined communicators and collective operation so that the receive buffers will have the following values:

You can start from scratch or use the skeleton code skeleton.cpp, skeleton.c or skeleton.F90.