13#include "arcane/core/DynamicMachineMemoryWindowVariableBase.h"
15#include "arcane/utils/FatalErrorException.h"
16#include "arcane/utils/ITraceMng.h"
18#include "arcane/core/IData.h"
19#include "arcane/core/IParallelMng.h"
20#include "arcane/core/DynamicMachineMemoryWindowBase.h"
21#include "arcane/core/IVariable.h"
23#include "arcane/core/internal/DynamicMachineMemoryWindowMemoryAllocator.h"
24#include "arcane/core/internal/IDataInternal.h"
26#include "arccore/common/AllocatedMemoryInfo.h"
27#include "arccore/base/MemoryView.h"
43 ARCANE_FATAL(
"The variable has not PInShMem property");
53 const AllocatedMemoryInfo data(m_var->data()->_commonInternal()->numericData()->memoryView().data());
54 return DynamicMachineMemoryWindowMemoryAllocator::segmentView(data);
63 const AllocatedMemoryInfo data(m_var->data()->_commonInternal()->numericData()->memoryView().data());
64 return DynamicMachineMemoryWindowMemoryAllocator::segmentView(data, rank);
73 const AllocatedMemoryInfo data(m_var->data()->_commonInternal()->numericData()->memoryView().data());
74 return DynamicMachineMemoryWindowMemoryAllocator::machineRanks(data);
83 const AllocatedMemoryInfo data(m_var->data()->_commonInternal()->numericData()->memoryView().data());
84 DynamicMachineMemoryWindowMemoryAllocator::barrier(data);
Informations sur une zone mémoire allouée.
Vue constante d'un tableau de type T.
ConstArrayView< Int32 > machineRanks() const
Méthode permettant d'obtenir les rangs qui possèdent un segment dans la fenêtre.
Span< std::byte > segmentView() const
Méthode permettant d'obtenir une vue sur notre segment.
void barrier() const
Méthode permettant d'attendre que tous les processus/threads du noeud appellent cette méthode pour co...
DynamicMachineMemoryWindowVariableBase(IVariable *var)
Constructeur.
Interface d'une variable.
@ PInShMem
Indique que la variable doit être alloué en mémoire partagée.
Vue d'un tableau d'éléments de type T.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int32_t Int32
Type entier signé sur 32 bits.