FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | i | |||
integer, | intent(out) | :: | request |
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