FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout), | dimension (:) | :: | i | ||
integer, | intent(out) | :: | request |
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(i)
request = mp_request_null
# endif
end subroutine nb_max_allreduce_integer_array