Buffer de Mensagem (cont.)
Solução: Criação de tipo “vetor”, com stride
MPI_Type_vector( int count;
MPI_Datatype element_type;
MPI_Datatype* new_mpi_type; )
MPI_Type_vector(10, 1, 10, MPI_FLOAT, &novotipo);
MPI_Type_commit(&novotipo);
if (my_rank==0) MPI_Send(&A[0][2], 1, novotipo, 1, 0, ...
else if (my_rank==1) MPI_Recv(&A[0][2], 1, novotipo, 0, 0, ...