Constructor for LocalMemAllocator

Product Support

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

Atlas inference product's Vector Core

Atlas training products

x

Function

Constructor for LocalMemAllocator.

Prototype

1
2
template <Hardware hard>
__aicore__ inline LocalMemAllocator<hard>::LocalMemAllocator()

Parameters

Table 1 Template parameters

Parameter

Description

hard

Physical location of data. The value is of the Hardware enumerated type. The valid locations are UB, L1, L0A, L0B, L0C, BIAS, and FIXBUF.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
enum class Hardware : uint8_t { 
GM,     // Global Memory
UB,     // Unified Buffer
L1,     // L1 Buffer
L0A,    // L0A Buffer
L0B,    // L0B Buffer
L0C,    // L0C Buffer
BIAS,   // BiasTable Buffer
FIXBUF, // Fixpipe Buffer
MAX };

Returns

None

Restrictions

Only one LocalMemAllocator object can exist in the operator lifecycle at the same physical location.