目录

GetWorkspaceSizes

Function Description

Obtains the workspace sizes pointer.

Function Prototype

size_t *GetWorkspaceSizes(const size_t workspace_count);

Parameters

Parameter Input/Output Description
workspace_count Input Number of workspaces. The number of input workspaces cannot exceed the maximum number of workspaces specified during compilation.

Return Value

Pointer to workspace sizes.

Restrictions

The number of input workspaces cannot exceed the maximum number of workspaces specified during compilation.

Currently, Kirin 9020, Kirin 9030, and Kirin X90 support a maximum of eight workspaces.

Calling Example

ge::graphStatus Tiling4XXX(TilingContext* context) {
  auto ws = context->GetWorkspaceSizes(5);
  // ...
}