Class allowing the creation of a shared memory window between the subdomains of the same node. The segments of this window will be contiguous in memory. More...
#include <arcane/core/ContigMachineShMemWinBase.h>
Public Member Functions | |
| ContigMachineShMemWinBase (IParallelMng *pm, Int64 sizeof_segment, Int32 sizeof_elem) | |
| Constructor. | |
| Span< std::byte > | segmentView () |
| Method allowing retrieval of a view on our window segment memory. | |
| Span< std::byte > | segmentView (Int32 rank) |
| Method allowing retrieval of a view on the window segment memory of another subdomain of the node. | |
| Span< std::byte > | windowView () |
| Method allowing retrieval of a view on the entire memory window. | |
| Span< const std::byte > | segmentConstView () const |
| Method allowing retrieval of a constant view on our segment memory window. | |
| Span< const std::byte > | segmentConstView (Int32 rank) const |
| Method allowing retrieval of a constant view on the segment of memory window of another subdomain of the node. | |
| Span< const std::byte > | windowConstView () const |
| Method allowing retrieval of a constant view on the entire window memory. | |
| void | resizeSegment (Integer new_size) |
| Method allowing resizing of the window segments. Collective call. | |
| ConstArrayView< Int32 > | machineRanks () const |
| Method allowing retrieval of the ranks that possess a segment in the window. | |
| void | barrier () const |
| Method allowing waiting until all processes/threads of the node call this method to continue execution. | |
Class allowing the creation of a shared memory window between the subdomains of the same node. The segments of this window will be contiguous in memory.
Definition at line 47 of file ContigMachineShMemWinBase.h.
| Arcane::ContigMachineShMemWinBase::ContigMachineShMemWinBase | ( | IParallelMng * | pm, |
| Int64 | sizeof_segment, | ||
| Int32 | sizeof_elem ) |
Constructor.
| pm | The ParallelMng containing the node's processes. |
| sizeof_segment | The size of the segment for this subdomain (in bytes). |
| sizeof_elem | The size of an element (in bytes). |
Definition at line 33 of file ContigMachineShMemWinBase.cc.
| void Arcane::ContigMachineShMemWinBase::barrier | ( | ) | const |
Method allowing waiting until all processes/threads of the node call this method to continue execution.
Definition at line 115 of file ContigMachineShMemWinBase.cc.
| ConstArrayView< Int32 > Arcane::ContigMachineShMemWinBase::machineRanks | ( | ) | const |
Method allowing retrieval of the ranks that possess a segment in the window.
The order of the processes in the returned view corresponds to the order of segments in the window.
Definition at line 106 of file ContigMachineShMemWinBase.cc.
| void Arcane::ContigMachineShMemWinBase::resizeSegment | ( | Integer | new_size | ) |
Method allowing resizing of the window segments. Collective call.
The total size of the window must be less than or equal to the original size.
| new_size | The new size of our segment (in bytes). |
Definition at line 97 of file ContigMachineShMemWinBase.cc.
| Span< const std::byte > Arcane::ContigMachineShMemWinBase::segmentConstView | ( | ) | const |
Method allowing retrieval of a constant view on our segment memory window.
Definition at line 70 of file ContigMachineShMemWinBase.cc.
Method allowing retrieval of a constant view on the segment of memory window of another subdomain of the node.
| rank | The rank of the subdomain. |
Definition at line 79 of file ContigMachineShMemWinBase.cc.
| Span< std::byte > Arcane::ContigMachineShMemWinBase::segmentView | ( | ) |
Method allowing retrieval of a view on our window segment memory.
Definition at line 43 of file ContigMachineShMemWinBase.cc.
Method allowing retrieval of a view on the window segment memory of another subdomain of the node.
| rank | The rank of the subdomain. |
Definition at line 52 of file ContigMachineShMemWinBase.cc.
| Span< const std::byte > Arcane::ContigMachineShMemWinBase::windowConstView | ( | ) | const |
Method allowing retrieval of a constant view on the entire window memory.
Definition at line 88 of file ContigMachineShMemWinBase.cc.
| Span< std::byte > Arcane::ContigMachineShMemWinBase::windowView | ( | ) |
Method allowing retrieval of a view on the entire memory window.
Definition at line 61 of file ContigMachineShMemWinBase.cc.