Create MPI window for RMA operations
Creates a window exposing local memory to remote RMA operations. Used for DDI distributed arrays.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(comm_t), | intent(in) | :: | comm | |||
| real(kind=dp), | target | :: | base(:) | |||
| integer(kind=MPI_ADDRESS_KIND), | intent(in) | :: | win_size |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | private | :: | disp_unit | ||||
| integer(kind=int32), | private | :: | ierr |
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