ParallelResultCalculation, .
, 3, GridSize , :
( ABlockCommunication),
( SerialResultCalculation),
( BlockCommunication).
, iter , . Pivot :
Pivot = (i+iter) mod GridSize,
i , ( , , , GridCoords), mod . , , GridCoords Pivot. , , . MPI_Bcast RowComm. : pMatrixAblock , , pAblock , . pMatrixAblock pAblock, pAblock .
. . MPI_Send MPI_Receive. , , , , , , , , .
pBblock MPI_Sendrecv_replace. . , , ( GridSize-1).
|
|
, A , pAblock pBblock, pCblock. pAblock pBblock BlockSize × BlockSize, SerialResultCalculation.
, , . , . , , .
MPI_Gather MPI. . , , MPI_Scatter.
C ResultCollection.