Gathers matrix data from all processes and all processes receive the same data
Note
see mp_allgather_i12
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int_4), | intent(in), | CONTIGUOUS | :: | msgout(:,:) |
Rank-2 data to send |
|
| integer(kind=int_4), | intent(out), | CONTIGUOUS | :: | msgin(:,:,:) | ||
| type(mp_comm_type), | intent(in) | :: | gid |
SUBROUTINE mp_allgather_i23(msgout, msgin, gid) # 4298 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Gathers matrix data from all processes and all processes receive the !! same data !! @note !! see mp_allgather_i12 # 4302 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! @endnote INTEGER(KIND=int_4), CONTIGUOUS, INTENT(IN) :: msgout(:, :) # 4305 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Rank-2 data to send INTEGER(KIND=int_4), CONTIGUOUS, INTENT(OUT) :: msgin(:, :, :) # 4307 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" TYPE(mp_comm_type), INTENT(IN) :: gid CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_allgather_i23' # 4310 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" INTEGER :: handle, ierr #if defined(__parallel) INTEGER :: rcount, scount #endif ierr = 0 CALL timeset(routineN, handle) #if defined(__parallel) scount = SIZE(msgout(:, :)) rcount = scount CALL MPI_ALLGATHER(msgout, scount, MPI_INTEGER, & # 4323 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" msgin, rcount, MPI_INTEGER, & # 4324 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" gid%handle, ierr) IF (ierr /= 0) CALL mp_stop(ierr, "mpi_allgather @ "//routineN) #else MARK_USED(gid) msgin(:, :, 1) = msgout(:, :) #endif CALL timestop(handle) END SUBROUTINE mp_allgather_i23