15#include "arcane/core/ContigMachineShMemWinBase.h"
17#include "arcane/core/IParallelMng.h"
18#include "arcane/core/internal/IParallelMngInternal.h"
20#include "arcane/utils/NumericTypes.h"
22#include "arccore/message_passing/internal/IContigMachineShMemWinBaseInternal.h"
35: m_pm_internal(pm->_internalApi())
36, m_node_window_base(m_pm_internal->createContigMachineShMemWinBase(nb_elem_segment * static_cast<
Int64>(sizeof_elem), sizeof_elem))
37, m_sizeof_elem(sizeof_elem)
46 return m_node_window_base->segmentView();
55 return m_node_window_base->segmentView(rank);
64 return m_node_window_base->windowView();
73 return m_node_window_base->segmentConstView();
82 return m_node_window_base->segmentConstView(rank);
91 return m_node_window_base->windowConstView();
100 m_node_window_base->resizeSegment(new_nb_elem *
static_cast<Int64>(m_sizeof_elem));
109 return m_node_window_base->machineRanks();
118 m_node_window_base->barrier();
Constant view of an array of type T.
Span< const std::byte > windowConstView() const
Method allowing retrieval of a constant view on the entire window memory.
ContigMachineShMemWinBase(IParallelMng *pm, Int64 sizeof_segment, Int32 sizeof_elem)
Constructor.
void resizeSegment(Integer new_size)
Method allowing resizing of the window segments. Collective call.
void barrier() const
Method allowing waiting until all processes/threads of the node call this method to continue executio...
Span< std::byte > segmentView()
Method allowing retrieval of a view on our window segment memory.
ConstArrayView< Int32 > machineRanks() const
Method allowing retrieval of the ranks that possess a segment in the window.
Span< const std::byte > segmentConstView() const
Method allowing retrieval of a constant view on our segment memory window.
Span< std::byte > windowView()
Method allowing retrieval of a view on the entire memory window.
Interface of the parallelism manager for a subdomain.
View of an array of elements of type T.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
std::int32_t Int32
Signed integer type of 32 bits.