Send one datum to another process
MPI mapping mpi_send
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int_4) | :: | msg |
Scalar to send |
|||
| integer | :: | dest |
Destination process Transfer identifier |
|||
| integer | :: | tag |
Destination process Transfer identifier |
|||
| type(mp_comm_type), | intent(in) | :: | gid |
Message passing environment identifier |
SUBROUTINE mp_send_i (msg, dest, tag, gid) # 3022 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Send one datum to another process !! !! MPI mapping !! mpi_send INTEGER(KIND=int_4) :: msg # 3028 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" !! Scalar to send INTEGER :: dest, tag !! Destination process !! Transfer identifier TYPE(mp_comm_type), INTENT(IN) :: gid !! Message passing environment identifier CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_send_i' # 3036 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" INTEGER :: handle, ierr, msglen ierr = 0 CALL timeset(routineN, handle) msglen = 1 #if defined(__parallel) CALL mpi_send(msg, msglen, MPI_INTEGER, dest, tag, gid%handle, ierr) # 3045 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" IF (ierr /= 0) CALL mp_stop(ierr, "mpi_send @ "//routineN) CALL add_perf(perf_id=13, msg_size=msglen*int_4_size) # 3047 "/__w/dbcsr/dbcsr/src/mpi/dbcsr_mpiwrap.F" #else MARK_USED(msg) MARK_USED(dest) MARK_USED(tag) MARK_USED(gid) ! only defined in parallel DBCSR_ABORT("not in parallel mode") #endif CALL timestop(handle) END SUBROUTINE mp_send_i