create_win_dp_array Function

private function create_win_dp_array(comm, base, win_size) result(win)

Create MPI window for RMA operations

Creates a window exposing local memory to remote RMA operations. Used for DDI distributed arrays.

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
real(kind=dp), target :: base(:)
integer(kind=MPI_ADDRESS_KIND), intent(in) :: win_size

Return Value type(win_t)


Called by

proc~~create_win_dp_array~2~~CalledByGraph proc~create_win_dp_array~2 create_win_dp_array interface~win_create~2 win_create interface~win_create~2->proc~create_win_dp_array~2

Variables

Type Visibility Attributes Name Initial
integer(kind=int32), private :: disp_unit
integer(kind=int32), private :: ierr

Source Code

   function create_win_dp_array(comm, base, win_size) result(win)
      !! Create MPI window for RMA operations
      !!
      !! Creates a window exposing local memory to remote RMA operations.
      !! Used for DDI distributed arrays.
      type(comm_t), intent(in) :: comm
      real(dp), target :: base(:)
      integer(MPI_ADDRESS_KIND), intent(in) :: win_size
      type(win_t) :: win
      integer(int32) :: ierr
      integer(int32) :: disp_unit

      ! A single rank has no peer. Reaching this means the caller
      ! did not take its `size() == 1` path -- which is a bug worth
      ! stopping for, not one to hide by returning quietly.
      error stop "pic_mpi_serial: create_win_dp_array needs a peer rank"
   end function create_win_dp_array