Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.21 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.21 KB

Collective operations

In this exercise we test different routines for collective communication.

Write a program for four MPI tasks. Each task should have a data vector with the values initialised to:

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

Implement communication that sends and receives values from the data vectors to the receive buffers using a single collective routine in each case, so that the receive buffers will have the following values. You can start from scratch or use the skeleton code found in c/skeleton.c or fortran/skeleton.F90.

Case 1

Case 2

Case 3

Case 4