GetWorkspaceLen

Product Support

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

x

Atlas inference product's Vector Core

x

Atlas training products

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.