DPC++ Runtime
Runtime libraries for oneAPI DPC++
settings::SetLimits Class Reference
Collaboration diagram for settings::SetLimits:

Public Member Functions

 SetLimits ()
 

Public Attributes

size_t SlabMinSize [MemType::All] = {}
 
size_t MaxPoolableSize [MemType::All] = {}
 
size_t Capacity [MemType::All] = {}
 
size_t MinBucketSize [MemType::All] = {}
 
size_t MaxPoolSize = 16_MB
 
size_t CurPoolSize = 0
 
size_t CurPoolSizes [MemType::All] = {}
 
size_t EnableBuffers = 1
 
int PoolTrace = 0
 

Static Public Attributes

static constexpr const charMemTypeNames [MemType::All]
 

Detailed Description

Definition at line 66 of file usm_allocator.cpp.

Constructor & Destructor Documentation

◆ SetLimits()

settings::SetLimits::SetLimits ( )
inline

Member Data Documentation

◆ Capacity

size_t settings::SetLimits::Capacity[MemType::All] = {}

Definition at line 80 of file usm_allocator.cpp.

Referenced by Bucket::Capacity(), and SetLimits().

◆ CurPoolSize

size_t settings::SetLimits::CurPoolSize = 0

◆ CurPoolSizes

size_t settings::SetLimits::CurPoolSizes[MemType::All] = {}

Definition at line 89 of file usm_allocator.cpp.

Referenced by USMAllocContext::deallocate(), and Bucket::updateStats().

◆ EnableBuffers

size_t settings::SetLimits::EnableBuffers = 1

Definition at line 91 of file usm_allocator.cpp.

Referenced by enableBufferPooling(), and SetLimits().

◆ MaxPoolableSize

size_t settings::SetLimits::MaxPoolableSize[MemType::All] = {}

◆ MaxPoolSize

size_t settings::SetLimits::MaxPoolSize = 16_MB

Definition at line 86 of file usm_allocator.cpp.

Referenced by Bucket::CanPool(), and SetLimits().

◆ MemTypeNames

constexpr const char* settings::SetLimits::MemTypeNames[MemType::All]
staticconstexpr
Initial value:
= {
"Host", "Device", "Shared", "SharedReadOnly"}

Definition at line 69 of file usm_allocator.cpp.

Referenced by USMAllocContext::allocate(), USMAllocContext::deallocate(), Bucket::printStats(), and USMAllocContext::~USMAllocContext().

◆ MinBucketSize

size_t settings::SetLimits::MinBucketSize[MemType::All] = {}

Definition at line 83 of file usm_allocator.cpp.

Referenced by SetLimits().

◆ PoolTrace

◆ SlabMinSize

size_t settings::SetLimits::SlabMinSize[MemType::All] = {}

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