Open ih4cku opened 7 years ago
MPI
communicator
: defines a group of processes
MPI_COMM_WORLD
is the predefined communicator that includes all of the MPI processesrank
: process id within the grouptag
: message indentifierMPI_Init
and MPI_Init_threads
MPI_Init_threads
is used for programs with threadsMPI_Bcast
send the same piece of data to all processesMPI_Scatter
send chunks of an array to different processes
MPI_Gather
: the recv_count
parameter is the count of elements received per process, not the total summation of counts from all processes