Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::PartitionerMemoryInfo Class Reference

Class for managing partitioning criteria. More...

#include <arcane/impl/internal/LoadBalanceMngInternal.h>

Collaboration diagram for Arcane::PartitionerMemoryInfo:

Classes

struct  MemInfo
 Cache system for accessing memory related to a cell. More...

Public Member Functions

 PartitionerMemoryInfo ()
 Construction based on the IVariableMng.
Integer addEntity (const String &entity)
 Adds an entity and assigns it a number. The same name is not duplicated.
void computeMemory (IVariableMng *varMng)
Real getOverallMemory (const String &entity) const
 Returns the total memory associated with an entity.
Real getOverallMemory (Integer offset) const
Real getOverallMemory (const Cell &cell)
Real getResidentMemory (const String &entity) const
 Returns the "resident" (to be transferred) memory associated with an entity.
Real getResidentMemory (Integer offset) const
Real getResidentMemory (const Cell &cell)
Integer operator[] (const String &entity) const
 Management of entities and their names.
const Stringoperator[] (unsigned int i) const

Private Member Functions

Integer _findEntity (const String &entity) const
void _computeMemCell (Cell cell)
template<typename ItemKind>
Real _computeMemContrib (ItemConnectedListViewTypeT< ItemKind > list)
 Calculates the contribution of an entity to adjacent cells.

Private Attributes

UniqueArray< Stringm_family_names
UniqueArray< Int32m_overall_memory
UniqueArray< Int32m_resident_memory
MemInfo m_buffer

Detailed Description

Class for managing partitioning criteria.

It essentially serves to provide memory information associated with each entity. Allows obtaining the entity number from its name.

Note
This class is not thread safe.

Definition at line 134 of file LoadBalanceMngInternal.h.

Constructor & Destructor Documentation

◆ PartitionerMemoryInfo()

Arcane::PartitionerMemoryInfo::PartitionerMemoryInfo ( )
inlineexplicit

Construction based on the IVariableMng.

Definition at line 139 of file LoadBalanceMngInternal.h.

References Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, and Arcane::IK_Unknown.

Member Function Documentation

◆ _computeMemCell()

void Arcane::PartitionerMemoryInfo::_computeMemCell ( Cell cell)
inlineprivate

Definition at line 268 of file LoadBalanceMngInternal.h.

◆ _computeMemContrib()

template<typename ItemKind>
Real Arcane::PartitionerMemoryInfo::_computeMemContrib ( ItemConnectedListViewTypeT< ItemKind > list)
inlineprivate

Calculates the contribution of an entity to adjacent cells.

Definition at line 292 of file LoadBalanceMngInternal.h.

◆ _findEntity()

Integer Arcane::PartitionerMemoryInfo::_findEntity ( const String & entity) const
inlineprivate

Definition at line 258 of file LoadBalanceMngInternal.h.

◆ addEntity()

Integer Arcane::PartitionerMemoryInfo::addEntity ( const String & entity)
inline

Adds an entity and assigns it a number. The same name is not duplicated.

Definition at line 150 of file LoadBalanceMngInternal.h.

◆ computeMemory()

void Arcane::PartitionerMemoryInfo::computeMemory ( IVariableMng * varMng)
inline

Definition at line 163 of file LoadBalanceMngInternal.h.

◆ getOverallMemory() [1/3]

Real Arcane::PartitionerMemoryInfo::getOverallMemory ( const Cell & cell)
inline

Definition at line 221 of file LoadBalanceMngInternal.h.

◆ getOverallMemory() [2/3]

Real Arcane::PartitionerMemoryInfo::getOverallMemory ( const String & entity) const
inline

Returns the total memory associated with an entity.

Definition at line 209 of file LoadBalanceMngInternal.h.

References getOverallMemory().

Referenced by getOverallMemory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOverallMemory() [3/3]

Real Arcane::PartitionerMemoryInfo::getOverallMemory ( Integer offset) const
inline

Definition at line 217 of file LoadBalanceMngInternal.h.

◆ getResidentMemory() [1/3]

Real Arcane::PartitionerMemoryInfo::getResidentMemory ( const Cell & cell)
inline

Definition at line 240 of file LoadBalanceMngInternal.h.

◆ getResidentMemory() [2/3]

Real Arcane::PartitionerMemoryInfo::getResidentMemory ( const String & entity) const
inline

Returns the "resident" (to be transferred) memory associated with an entity.

Definition at line 228 of file LoadBalanceMngInternal.h.

References getResidentMemory().

Referenced by getResidentMemory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getResidentMemory() [3/3]

Real Arcane::PartitionerMemoryInfo::getResidentMemory ( Integer offset) const
inline

Definition at line 236 of file LoadBalanceMngInternal.h.

◆ operator[]() [1/2]

Integer Arcane::PartitionerMemoryInfo::operator[] ( const String & entity) const
inline

Management of entities and their names.

Definition at line 247 of file LoadBalanceMngInternal.h.

◆ operator[]() [2/2]

const String & Arcane::PartitionerMemoryInfo::operator[] ( unsigned int i) const
inline

Definition at line 251 of file LoadBalanceMngInternal.h.

Member Data Documentation

◆ m_buffer

MemInfo Arcane::PartitionerMemoryInfo::m_buffer
private

Definition at line 313 of file LoadBalanceMngInternal.h.

◆ m_family_names

UniqueArray<String> Arcane::PartitionerMemoryInfo::m_family_names
private

Definition at line 302 of file LoadBalanceMngInternal.h.

◆ m_overall_memory

UniqueArray<Int32> Arcane::PartitionerMemoryInfo::m_overall_memory
private

Definition at line 303 of file LoadBalanceMngInternal.h.

◆ m_resident_memory

UniqueArray<Int32> Arcane::PartitionerMemoryInfo::m_resident_memory
private

Definition at line 304 of file LoadBalanceMngInternal.h.


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