nb_max_allreduce_integer Subroutine

private subroutine nb_max_allreduce_integer(i, request)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: i
integer, intent(out) :: request

Contents


Source Code

  subroutine nb_max_allreduce_integer (i,request)
    implicit none
    integer, intent (in out) :: i
    integer, intent (out) :: request
# ifdef MPI3
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
    call mpi_iallreduce &
         (MPI_IN_PLACE, i, 1, MPI_INTEGER, MPI_MAX, mp_comm, request, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
    call max_allreduce(i)
    request = mp_request_null
# endif
  end subroutine nb_max_allreduce_integer