GetUserWorkspace
Function Usage
Obtains the workspace pointer used by the user. For details about workspace, see Workspace. In development processes based on the kernel launch mode, if -DHAVE_WORKSPACE is not enabled, the framework does not automatically set the system workspace. 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 user workspace needs to be obtained through this API.
Prototype
1
|
__aicore__ inline GM_ADDR GetUserWorkspace(GM_ADDR workspace) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
Workspace |
Input |
Pointer to the input workspace, including the system workspace and the workspace used by the user. |
Availability
Precautions
None
Returns
The user uses the workspace pointer.
Parent topic: Workspace