MpiFx 1.4.0
|
MPI shared memory window with some additional information. More...
Public Member Functions | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
generic | allocate_shared (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure | lock (self, error) |
Locks a shared memory segment for remote access. | |
procedure | unlock (self, error) |
Unlocks a shared memory segment. | |
procedure | sync (self, error) |
Synchronizes shared memory across MPI ranks after remote access. | |
procedure | fence (self, assert, error) |
Ensures consistency of stores between fence calls. | |
procedure | free (self, error) |
Deallocates memory associated with a shared memory segment. | |
Public Attributes | |
type(mpi_comm) | comm |
MPI communicator handle. | |
Private Member Functions | |
procedure, private | mpifx_win_allocate_shared_i_i4 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_i_i8 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_s_i4 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_s_i8 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_d_i4 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_d_i8 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_c_i4 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_c_i8 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_z_i4 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
procedure, private | mpifx_win_allocate_shared_z_i8 (self, mycomm, global_length, global_pointer, local_length, local_pointer, error) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment. | |
Private Attributes | |
type(mpi_win) | win |
MPI window handle. | |
MPI shared memory window with some additional information.
generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int32), intent(in) | global_length, | ||
integer, dimension(:), intent(out), pointer | global_pointer, | ||
integer(int32), intent(in), optional | local_length, | ||
integer, dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type integer in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type integer occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int64), intent(in) | global_length, | ||
integer, dimension(:), intent(out), pointer | global_pointer, | ||
integer(int64), intent(in), optional | local_length, | ||
integer, dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type integer in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type integer occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int32), intent(in) | global_length, | ||
real(sp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int32), intent(in), optional | local_length, | ||
real(sp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int64), intent(in) | global_length, | ||
real(sp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int64), intent(in), optional | local_length, | ||
real(sp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int32), intent(in) | global_length, | ||
real(dp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int32), intent(in), optional | local_length, | ||
real(dp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int64), intent(in) | global_length, | ||
real(dp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int64), intent(in), optional | local_length, | ||
real(dp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int32), intent(in) | global_length, | ||
complex(sp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int32), intent(in), optional | local_length, | ||
complex(sp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int64), intent(in) | global_length, | ||
complex(sp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int64), intent(in), optional | local_length, | ||
complex(sp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int32), intent(in) | global_length, | ||
complex(dp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int32), intent(in), optional | local_length, | ||
complex(dp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) generic mpifx_win_module::mpifx_win::allocate_shared | ( | class(mpifx_win), intent(out) | self, |
class(mpifx_comm), intent(in) | mycomm, | ||
integer(int64), intent(in) | global_length, | ||
complex(dp), dimension(:), intent(out), pointer | global_pointer, | ||
integer(int64), intent(in), optional | local_length, | ||
complex(dp), dimension(:), intent(out), optional, pointer | local_pointer, | ||
integer, intent(out), optional | error ) |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) procedure mpifx_win_module::mpifx_win::fence | ( | class(mpifx_win), intent(inout) | self, |
integer, intent(in), optional | assert, | ||
integer, intent(out), optional | error ) |
Ensures consistency of stores between fence calls.
self | Handle of the shared memory window. |
assert | Hint to the MPI library to assume certain condition (e.g., MPI_MODE_NOSTORE). |
error | Optional error code on return. |
MPI_WIN_FENCE
) procedure mpifx_win_module::mpifx_win::free | ( | class(mpifx_win), intent(inout) | self, |
integer, intent(out), optional | error ) |
Deallocates memory associated with a shared memory segment.
self | Handle of the shared memory window. |
error | Optional error code on return. |
MPI_WIN_FREE
) procedure mpifx_win_module::mpifx_win::lock | ( | class(mpifx_win), intent(inout) | self, |
integer, intent(out), optional | error ) |
Locks a shared memory segment for remote access.
self | Handle of the shared memory window. |
error | Optional error code on return. |
MPI_WIN_LOCK_ALL
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type integer in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type integer occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type integer in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type integer occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type real(sp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type real(sp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
)
|
private |
Initialized a window handle and returns a pointer to the address associated with a shared memory segment.
self | Handle of the shared memory window on return. |
mycomm | MPI communicator. |
global_length | Number of elements of type complex(dp) in the entire shared memory window. |
global_pointer | Pointer to the shared data array of length 'global_length' on return. |
local_length | Number of elements of type complex(dp) occupied by the current rank. |
local_pointer | Pointer to the local chunk of the data array of length 'local_length' on return. |
error | Optional error code on return. |
MPI_WIN_ALLOCATE_SHARED
) procedure mpifx_win_module::mpifx_win::sync | ( | class(mpifx_win), intent(inout) | self, |
integer, intent(out), optional | error ) |
Synchronizes shared memory across MPI ranks after remote access.
self | Handle of the shared memory window. |
error | Optional error code on return. |
MPI_WIN_SYNC
) procedure mpifx_win_module::mpifx_win::unlock | ( | class(mpifx_win), intent(inout) | self, |
integer, intent(out), optional | error ) |
Unlocks a shared memory segment.
self | Handle of the shared memory window. |
error | Optional error code on return. |
MPI_WIN_UNLOCK_ALL
)