FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(inout) | :: | a | |||
integer, | intent(out) | :: | request |
subroutine nb_max_allreduce_real (a, request)
implicit none
real, intent (in out) :: a
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, a, 1, mpireal, MPI_MAX, mp_comm, request, ierror)
!$OMP MASTER
call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# else
call max_allreduce(a)
request = mp_request_null
# endif
end subroutine nb_max_allreduce_real