GetKfcWorkspace

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

Obtains the memory address of the CubeResGroupHandle message communication area. You need to use this API to manage the space address when using CubeResGroupHandle.

Prototype

1
__aicore__ inline GM_ADDR GetKfcWorkspace()

Parameters

None

Returns

Workspace address

Restrictions

This API cannot be used together with CreateCubeResGroup.

Example

1
2
AscendC::KfcWorkspace desc(workspaceGM);
GM_ADDR workspace = desc.GetKfcWorkspace();