win_fetch_and_add_i64 Subroutine

private subroutine win_fetch_and_add_i64(this, target_rank, target_disp, value, result)

Type Bound

win_t

Arguments

Type IntentOptional Attributes Name
class(win_t), intent(in) :: this
integer, intent(in) :: target_rank
integer(kind=MPI_ADDRESS_KIND), intent(in) :: target_disp
integer(kind=int64), intent(in) :: value
integer(kind=int64), intent(out) :: result

Calls

proc~~win_fetch_and_add_i64~2~~CallsGraph proc~win_fetch_and_add_i64~2 win_t%win_fetch_and_add_i64 mpi_fetch_and_op mpi_fetch_and_op proc~win_fetch_and_add_i64~2->mpi_fetch_and_op

Variables

Type Visibility Attributes Name Initial
integer, private :: ierr

Source Code

   subroutine win_fetch_and_add_i64(this, target_rank, target_disp, value, result)
      class(win_t), intent(in) :: this
      integer, intent(in) :: target_rank
      integer(MPI_ADDRESS_KIND), intent(in) :: target_disp
      integer(int64), intent(in) :: value
      integer(int64), intent(out) :: result
      integer :: ierr

      call MPI_Fetch_and_op(value, result, MPI_INTEGER8, &
                            target_rank, target_disp, MPI_SUM, this%m_win, ierr)
   end subroutine win_fetch_and_add_i64