Functional parallelism and collectives

Collective communication

Definition
Types of collective communications
MPI_Bcast
1
2
mpicc -o bcast bcast.c
mpirun --host compute01:2,compute02:2 -np 4 ./bcast
MPI_Scatter
1
2
mpicc -o scatter scatter.c
mpirun --host compute01:2,compute02:2 -np 4 ./scatter
MPI_Gather
1
2
mpicc -o gather gather.c
mpirun --host compute01:2,compute02:2 -np 4 ./gather
MPI_Reduce
1
2
mpicc -o reduce reduce.c
mpirun --host compute01:2,compute02:2 -np 4 ./reduce