nb_max_allreduce_integer_array Subroutine

private subroutine nb_max_allreduce_integer_array(i, request)

FIXME : Add documentation

Arguments

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

Contents


Source Code

  subroutine nb_max_allreduce_integer_array (i, request)
    implicit none
    integer, dimension (:), 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, size(i), 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_integer_array(i)
    request = mp_request_null
# endif
  end subroutine nb_max_allreduce_integer_array