Destroy
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Function Usage
Releases resources.
Prototype
1 | __aicore__ inline void Destroy() |
Constraints
This API is called to repeatedly apply for and release TPipe resources. After a TPipe object is created, you can call Destroy to manually release resources.
Returns
None
Example
1 2 3 4 5 6 | AscendC::TPipe pipe; // TPipe object AscendC::TQue<AscendC::TPosition::VECOUT, 2> que; // Output queue management object, with TPosition set to VECOUT. uint8_t num = 2; uint32_t len = 128; pipe.InitBuffer(que, num, len); pipe.Destroy(); |
Parent topic: TPipe