GetWorkspaceLen
Product Support
Product |
Supported |
|---|---|
x |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Returns the size of the global memory message space occupied by the current GroupBarrier object.
Prototype
1 | __aicore__ inline uint64_t GetWorkspaceLen() |
Parameters
None
Returns
Size of the global memory message space occupied by the current GroupBarrier object.
Restrictions
None
Example
1 2 | AscendC::GroupBarrier<AscendC::PipeMode::MTE3_MODE> barA(startAddr, 3, 6); uint64_t offset = barA.GetWorkspaceLen(); // Return the size of space occupied by barA in the global memory. |
Parent topic: GroupBarrier