UpdateKfcWorkspace

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

Updates 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 void UpdateKfcWorkspace(uint32_t offset)

Parameters

Table 1 API parameters

Parameter

Input/Output

Description

offset

Input

The number of bytes to offset from the current address of the workspace.

Returns

None

Restrictions

This API cannot be used together with CreateCubeResGroup.

Example

1
2
AscendC::KfcWorkspace desc(workspaceGM);
desc.UpdateKfcWorkspace(1024);