Class allowing access to the shared elements of the variable in shared memory. More...
#include <arcane/core/MachineShMemWinVariable.h>
Public Member Functions | |
| MachineShMemWinVariableArray2T (VariableRefArray2T< DataType > var) | |
| Constructor. | |
| ConstArrayView< Int32 > | machineRanks () const |
| Method allowing retrieval of ranks that possess a segment in the window. | |
| void | barrier () const |
| Method allowing waiting until all processes/threads on the node call this method to continue execution. | |
| Span2< DataType > | view (Int32 rank) const |
| Method allowing retrieval of a view on the array of another subdomain on the node. | |
| void | updateVariable () |
| Method allowing updating this object after a resizing of the variable. | |
Private Attributes | |
| Ref< MachineShMemWinVariable2DBase > | m_base |
| VariableRefArray2T< DataType > | m_vart |
Class allowing access to the shared elements of the variable in shared memory.
It is necessary that this variable be allocated in shared memory with the property "IVariable::PInShMem".
This class works for 2D array variables without support.
If the size of the variable changes while an object of this type is used, it is necessary to call the updateVariable() method.
Definition at line 255 of file MachineShMemWinVariable.h.
|
explicit |
Constructor.
| var | Variable having the property "IVariable::PInShMem". |
Definition at line 168 of file MachineShMemWinVariable.cc.
References Arcane::makeRef(), and updateVariable().
| void Arcane::MachineShMemWinVariableArray2T< DataType >::barrier | ( | ) | const |
Method allowing waiting until all processes/threads on the node call this method to continue execution.
Definition at line 197 of file MachineShMemWinVariable.cc.
| ConstArrayView< Int32 > Arcane::MachineShMemWinVariableArray2T< DataType >::machineRanks | ( | ) | const |
Method allowing retrieval of ranks that possess a segment in the window.
Non-collective call.
Definition at line 187 of file MachineShMemWinVariable.cc.
| void Arcane::MachineShMemWinVariableArray2T< DataType >::updateVariable | ( | ) |
Method allowing updating this object after a resizing of the variable.
Collective call.
Definition at line 218 of file MachineShMemWinVariable.cc.
Referenced by MachineShMemWinVariableArray2T().
| Span2< DataType > Arcane::MachineShMemWinVariableArray2T< DataType >::view | ( | Int32 | rank | ) | const |
Method allowing retrieval of a view on the array of another subdomain on the node.
Non-collective call.
| rank | The rank of the subdomain. |
Definition at line 207 of file MachineShMemWinVariable.cc.
References Arcane::asSpan(), and Arcane::SpanImpl< T, SizeType, Extent >::data().
|
private |
Definition at line 308 of file MachineShMemWinVariable.h.
|
private |
Definition at line 309 of file MachineShMemWinVariable.h.