Constructor
Function Usage
Initializes data members during TBufPool object creation.
Prototype
1 2 | template <TPosition pos, uint32_t bufIDSize = 4> __aicore__ inline TBufPool(); |
Parameters
Parameter |
Meaning |
|---|---|
pos |
Logical location of TBufPool. The value can be VECIN, VECOUT, VECCALC, A1, B1, or C1. For details about TPosition, see TPosition. |
bufIDSize |
Number of buffers that can be allocated by TBufPool. The default value is 4, and the value cannot exceed 16. For resource allocation in non-sharing mode, when a TBufPool is requested again from the current TBufPool, the requested bufIDSize cannot exceed the number of remaining available buffers in the original TBufPool. For resource allocation in sharing mode, when a TBufPool is requested again from the current TBufPool, the requested bufIDSize cannot exceed the number of buffers set for the original TBufPool. |
Constraints
None
Parent topic: TBufPool