目录

GetUserWorkspace

Function Description

Obtains the workspace pointer used by the developer. If high-level APIs that require the system workspace, such as Matmul, are used, the kernel needs to set the system workspace through SetSysWorkSpace. In this case, the developer workspace needs to be obtained through this API.

Function Prototype

__aicore__ inline GM_ADDR GetUserWorkspace(GM_ADDR workspace)

Parameters

Table 1 API parameters

Parameter Input/Output Description
workspace Input Pointer to the passed workspace, including the system workspace and the workspace used by the developer.

Supported Models

Kirin 9020 series processors

Kirin 9030 series processors

Kirin X90 series processors

Precautions

None

Return Value

Workspace pointer used by the developer.