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

Options to configure allocations. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/MemoryAllocationOptions.h>

Collaboration diagram for Arcane::MemoryAllocationOptions:

Public Member Functions

 MemoryAllocationOptions (IMemoryAllocator *allocator)
 MemoryAllocationOptions (IMemoryAllocator *allocator, eMemoryLocationHint mem_hint)
 MemoryAllocationOptions (IMemoryAllocator *allocator, eMemoryLocationHint mem_hint, Int8 device)
 MemoryAllocationOptions (const MemoryAllocationOptions &rhs)
MemoryAllocationOptions & operator= (const MemoryAllocationOptions &rhs)
IMemoryAllocatorallocator () const
void setAllocator (IMemoryAllocator *v)
eMemoryLocationHint memoryLocationHint () const
void setMemoryLocationHint (eMemoryLocationHint mem_advice)
Int16 device () const
void setDevice (Int16 device)
void setArrayName (const String &name)
String arrayName () const
MemoryAllocationArgs allocationArgs (RunQueue *queue=nullptr) const
 Arguments for 'IMemoryAllocator' associated with these options and the queue.

Private Member Functions

void _addDebugReference ()
void _removeDebugReference ()

Private Attributes

IMemoryAllocatorm_allocator = nullptr
ArrayDebugInfom_debug_info = nullptr
Int16 m_device = -1
eMemoryLocationHint m_memory_location_hint = eMemoryLocationHint::None

Friends

class ArrayMetaData
bool operator== (const MemoryAllocationOptions &a, const MemoryAllocationOptions &b)

Detailed Description

Options to configure allocations.

Definition at line 31 of file common/arccore/common/MemoryAllocationOptions.h.

Constructor & Destructor Documentation

◆ MemoryAllocationOptions() [1/4]

Arcane::MemoryAllocationOptions::MemoryAllocationOptions ( IMemoryAllocator * allocator)
inlineexplicit

◆ MemoryAllocationOptions() [2/4]

Arcane::MemoryAllocationOptions::MemoryAllocationOptions ( IMemoryAllocator * allocator,
eMemoryLocationHint mem_hint )
inline

◆ MemoryAllocationOptions() [3/4]

Arcane::MemoryAllocationOptions::MemoryAllocationOptions ( IMemoryAllocator * allocator,
eMemoryLocationHint mem_hint,
Int8 device )
inline

◆ MemoryAllocationOptions() [4/4]

Arcane::MemoryAllocationOptions::MemoryAllocationOptions ( const MemoryAllocationOptions & rhs)
inline

◆ ~MemoryAllocationOptions()

Arcane::MemoryAllocationOptions::~MemoryAllocationOptions ( )
inline

Member Function Documentation

◆ _addDebugReference()

void Arcane::MemoryAllocationOptions::_addDebugReference ( )
private

Definition at line 72 of file MemoryAllocationOptions.cc.

◆ _removeDebugReference()

void Arcane::MemoryAllocationOptions::_removeDebugReference ( )
private

Definition at line 81 of file MemoryAllocationOptions.cc.

◆ allocationArgs()

MemoryAllocationArgs Arcane::MemoryAllocationOptions::allocationArgs ( RunQueue * queue = nullptr) const

Arguments for 'IMemoryAllocator' associated with these options and the queue.

Definition at line 36 of file MemoryAllocationOptions.cc.

◆ allocator()

IMemoryAllocator * Arcane::MemoryAllocationOptions::allocator ( ) const
inline

◆ arrayName()

String Arcane::MemoryAllocationOptions::arrayName ( ) const

Definition at line 63 of file MemoryAllocationOptions.cc.

◆ device()

Int16 Arcane::MemoryAllocationOptions::device ( ) const
inline

◆ memoryLocationHint()

eMemoryLocationHint Arcane::MemoryAllocationOptions::memoryLocationHint ( ) const
inline

◆ operator=()

MemoryAllocationOptions & Arcane::MemoryAllocationOptions::operator= ( const MemoryAllocationOptions & rhs)
inline

◆ setAllocator()

void Arcane::MemoryAllocationOptions::setAllocator ( IMemoryAllocator * v)
inline

◆ setArrayName()

void Arcane::MemoryAllocationOptions::setArrayName ( const String & name)

Definition at line 50 of file MemoryAllocationOptions.cc.

◆ setDevice()

void Arcane::MemoryAllocationOptions::setDevice ( Int16 device)
inline

◆ setMemoryLocationHint()

void Arcane::MemoryAllocationOptions::setMemoryLocationHint ( eMemoryLocationHint mem_advice)
inline

◆ ArrayMetaData

friend class ArrayMetaData
friend

◆ operator==

bool operator== ( const MemoryAllocationOptions & a,
const MemoryAllocationOptions & b )
friend

Member Data Documentation

◆ m_allocator

IMemoryAllocator* Arcane::MemoryAllocationOptions::m_allocator = nullptr
private

◆ m_debug_info

ArrayDebugInfo* Arcane::MemoryAllocationOptions::m_debug_info = nullptr
private

◆ m_device

Int16 Arcane::MemoryAllocationOptions::m_device = -1
private

◆ m_memory_location_hint

eMemoryLocationHint Arcane::MemoryAllocationOptions::m_memory_location_hint = eMemoryLocationHint::None
private

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