Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::SequentialContigMachineShMemWinBaseInternal Class Reference
Inheritance diagram for Arcane::SequentialContigMachineShMemWinBaseInternal:
Collaboration diagram for Arcane::SequentialContigMachineShMemWinBaseInternal:

Public Member Functions

 SequentialContigMachineShMemWinBaseInternal (Int64 sizeof_segment, Int32 sizeof_type)
Int32 sizeofOneElem () const override
 Method allowing the retrieval of the size of an element in the window.
Span< std::byte > segmentView () override
 Method allowing the retrieval of a view of its segment.
Span< std::byte > segmentView (const Int32 rank) override
 Method allowing the retrieval of a view of the segment of another subdomain of the node.
Span< std::byte > windowView () override
 Method allowing the retrieval of a view of the entire window.
Span< const std::byte > segmentConstView () const override
 Method allowing the retrieval of a view of its segment.
Span< const std::byte > segmentConstView (const Int32 rank) const override
 Method allowing the retrieval of a view of the segment of another subdomain of the node.
Span< const std::byte > windowConstView () const override
 Method allowing the retrieval of a view of the entire window.
void resizeSegment (const Int64 new_sizeof_segment) override
 Method allowing the resizing of the window segments.
ConstArrayView< Int32machineRanks () const override
 Method allowing the retrieval of the ranks that possess a segment in the window.
void barrier () const override
 Method allowing waiting until all processes/threads of the node call this method to continue execution.

Private Attributes

Int64 m_sizeof_segment = 0
Int64 m_max_sizeof_segment = 0
Int32 m_sizeof_type = 0
UniqueArray< std::byte > m_segment
Int32 m_my_rank = 0

Detailed Description

Definition at line 361 of file SequentialParallelMng.cc.

Constructor & Destructor Documentation

◆ SequentialContigMachineShMemWinBaseInternal()

Arcane::SequentialContigMachineShMemWinBaseInternal::SequentialContigMachineShMemWinBaseInternal ( Int64 sizeof_segment,
Int32 sizeof_type )
inline

Definition at line 366 of file SequentialParallelMng.cc.

Member Function Documentation

◆ barrier()

void Arcane::SequentialContigMachineShMemWinBaseInternal::barrier ( ) const
inlineoverridevirtual

Method allowing waiting until all processes/threads of the node call this method to continue execution.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 427 of file SequentialParallelMng.cc.

◆ machineRanks()

ConstArrayView< Int32 > Arcane::SequentialContigMachineShMemWinBaseInternal::machineRanks ( ) const
inlineoverridevirtual

Method allowing the 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 the segments in the window.

Returns
A view containing the rank IDs.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 422 of file SequentialParallelMng.cc.

◆ resizeSegment()

void Arcane::SequentialContigMachineShMemWinBaseInternal::resizeSegment ( const Int64 new_sizeof_segment)
inlineoverridevirtual

Method allowing the resizing of the window segments.

Collective call.

The total size of the window must be less than or equal to the original size.

Parameters
new_sizeof_segmentThe new size of our segment (in bytes).

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 414 of file SequentialParallelMng.cc.

References ARCANE_FATAL.

◆ segmentConstView() [1/2]

Span< const std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::segmentConstView ( ) const
inlineoverridevirtual

Method allowing the retrieval of a view of its segment.

Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 398 of file SequentialParallelMng.cc.

References Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

◆ segmentConstView() [2/2]

Span< const std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::segmentConstView ( const Int32 rank) const
inlineoverridevirtual

Method allowing the retrieval of a view of the segment of another subdomain of the node.

Parameters
rankThe rank of the subdomain.
Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 402 of file SequentialParallelMng.cc.

References ARCANE_FATAL, and Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

◆ segmentView() [1/2]

Span< std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::segmentView ( )
inlineoverridevirtual

Method allowing the retrieval of a view of its segment.

Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 382 of file SequentialParallelMng.cc.

References Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

◆ segmentView() [2/2]

Span< std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::segmentView ( const Int32 rank)
inlineoverridevirtual

Method allowing the retrieval of a view of the segment of another subdomain of the node.

Parameters
rankThe rank of the subdomain.
Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 386 of file SequentialParallelMng.cc.

References ARCANE_FATAL, and Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

◆ sizeofOneElem()

Int32 Arcane::SequentialContigMachineShMemWinBaseInternal::sizeofOneElem ( ) const
inlineoverridevirtual

Method allowing the retrieval of the size of an element in the window.

Returns
The size of an element.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 377 of file SequentialParallelMng.cc.

◆ windowConstView()

Span< const std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::windowConstView ( ) const
inlineoverridevirtual

Method allowing the retrieval of a view of the entire window.

Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 409 of file SequentialParallelMng.cc.

References Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

◆ windowView()

Span< std::byte > Arcane::SequentialContigMachineShMemWinBaseInternal::windowView ( )
inlineoverridevirtual

Method allowing the retrieval of a view of the entire window.

Returns
A view.

Implements Arcane::MessagePassing::IContigMachineShMemWinBaseInternal.

Definition at line 393 of file SequentialParallelMng.cc.

References Arcane::Span< T, Extent >::subSpan().

Here is the call graph for this function:

Member Data Documentation

◆ m_max_sizeof_segment

Int64 Arcane::SequentialContigMachineShMemWinBaseInternal::m_max_sizeof_segment = 0
private

Definition at line 432 of file SequentialParallelMng.cc.

◆ m_my_rank

Int32 Arcane::SequentialContigMachineShMemWinBaseInternal::m_my_rank = 0
private

Definition at line 436 of file SequentialParallelMng.cc.

◆ m_segment

UniqueArray<std::byte> Arcane::SequentialContigMachineShMemWinBaseInternal::m_segment
private

Definition at line 435 of file SequentialParallelMng.cc.

◆ m_sizeof_segment

Int64 Arcane::SequentialContigMachineShMemWinBaseInternal::m_sizeof_segment = 0
private

Definition at line 431 of file SequentialParallelMng.cc.

◆ m_sizeof_type

Int32 Arcane::SequentialContigMachineShMemWinBaseInternal::m_sizeof_type = 0
private

Definition at line 434 of file SequentialParallelMng.cc.


The documentation for this class was generated from the following file: