Question: i want the output of this code using three process void Trace ( ) int a = 2 , b = 4 , c =
i want the output of this code using three process void Trace
int a b c d ;
int commsZ;
int mYrank;
MPIInit NULL NULL ;
MPI Commsize
MPICOMMWORLD,
&Commsz ;
MPI Commrank
MPICOMMWORLD,
&myrank ;
MPI Reduce &a &C MPIINT, MPISUM, MPICOMN WORLD
MPI Reduce &b &d MPIINT, MPISUN, MPICOMM WIORLD
printf Process $d: c$d and dad myrank, C d
MPIFinalize ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
