GlobalMemorySlot Class Reference
HiCR
|
HiCR::backend::mpi::GlobalMemorySlot Class Referencefinal
#include <globalMemorySlot.hpp>
Inheritance diagram for HiCR::backend::mpi::GlobalMemorySlot:

Public Member Functions | |
GlobalMemorySlot (int rank, const HiCR::GlobalMemorySlot::tag_t globalTag=0, const HiCR::GlobalMemorySlot::globalKey_t globalKey=0, std::shared_ptr< HiCR::LocalMemorySlot > sourceLocalMemorySlot=nullptr) | |
~GlobalMemorySlot () override=default | |
__INLINE__ const int | getRank () |
__INLINE__ std::unique_ptr< MPI_Win > & | getDataWindow () |
__INLINE__ std::unique_ptr< MPI_Win > & | getRecvMessageCountWindow () |
__INLINE__ std::unique_ptr< MPI_Win > & | getSentMessageCountWindow () |
__INLINE__ bool | getLockAcquiredValue () const |
__INLINE__ void | setLockAcquiredValue (const bool value) |
![]() | |
GlobalMemorySlot (const tag_t globalTag=0, const globalKey_t globalKey=0, std::shared_ptr< HiCR::LocalMemorySlot > sourceLocalMemorySlot=nullptr) | |
__INLINE__ tag_t | getGlobalTag () const noexcept |
__INLINE__ globalKey_t | getGlobalKey () const noexcept |
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > | getSourceLocalMemorySlot () noexcept |
Additional Inherited Members | |
![]() | |
using | globalKey_t = uint64_t |
using | tag_t = uint64_t |
Detailed Description
This class represents the definition for a Global Memory Slot resource for the MPI backend:
Constructor & Destructor Documentation
◆ GlobalMemorySlot()
|
inline |
Constructor for a MemorySlot class for the MPI backend
- Parameters
-
[in] rank Rank to which this memory slot belongs [in] globalTag For global memory slots, indicates the subset of global memory slots this belongs to [in] globalKey Unique identifier for that memory slot that this slot occupies. [in] sourceLocalMemorySlot The local memory slot (if applicable) from whence this global memory slot is created
◆ ~GlobalMemorySlot()
|
overridevirtualdefault |
Default destructor
Reimplemented from HiCR::GlobalMemorySlot.
Member Function Documentation
◆ getDataWindow()
|
inline |
If this is a global slot, it returns a pointer to the MPI window for the actual memory slot data
- Returns
- A pointer to the MPI window for the actual memory slot data
◆ getLockAcquiredValue()
|
inline |
Returns whether the memory slot lock has been acquired by the current MPI instance
- Returns
- The internal state of _lockAcquired
◆ getRank()
|
inline |
Returns the rank to which this memory slot belongs
- Returns
- The rank to which this memory slot belongs
◆ getRecvMessageCountWindow()
|
inline |
If this is a global slot, it returns a pointer to the MPI window for the received message count
- Returns
- A pointer to the MPI window for the received message count
◆ getSentMessageCountWindow()
|
inline |
If this is a global slot, it returns a pointer to the MPI window for the sent message count
- Returns
- A pointer to the MPI window for the sent message count
◆ setLockAcquiredValue()
|
inline |
Sets memory slot lock state (whether it has been acquired by the current MPI instance or not)
- Parameters
-
[in] value The internal state of _lockAcquired to set
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/mpi/globalMemorySlot.hpp
Generated by