TBufPool Constructor
Function
Initializes data members during TBufPool object creation.
Prototype
1 2 | template <TPosition pos, uint32_t bufIDSize = defaultBufIDSize> __aicore__ inline TBufPool(); |
Parameters
Parameter |
Description |
|---|---|
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 the 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 the 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. |
Restrictions
None
Parent topic: TBufPool