Mpi Parallel Programing

Job ID: 37650465

Budget: €12 – €18 EUR

I need two exercises in MPI with explanatory work reportin pdf format, where the solution adopted, the Implementation decisions and the operation of each program are detailed in a
reasoned manner. Serious people, who offer themselves to work and who do not disappear. If you speak Spanish better.
The two consist of:
1) It is intended to carry out ring communication by groups. For this, 4 static processes will
initially be created. Once created, the even-ranked static process group will create a group of
two dynamic children. The group of static processes of odd rank will in turn create another
group of 2 dynamic processes. Subsequently, the highest-ranking static process will
communicate a random token to its child group through collective communication. After
receiving it, the group of children will communicate the token to the other group of dynamic
children, also through collective communication. Upon receiving it, the second dynamic child
group will send it to its parent process group. Finally, the parent process group will return it to
the process group that initiated the communication. All communications must be collective
2) The aim is to sort a matrix of size N x N using a number P of static processes, with N being
an input parameter of the program. To do this, the rank 0 process must generate the initial
matrix by filling it with random integers in the interval [0:100]. Once the matrix is
generated, all processes must work on the matrix to order it so that the smallest number is
located in position [1,1] and the largest in position [N,N], following a row ordering . The
rank 0 process must print the initial matrix and the ordered matrix on the screen.
Additionally, an analysis of the program's performance must be performed by comparing
the execution time with a variable number of initial processes.