aclrtKernelArgsGetMemSize

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Obtains the actual memory size required by the parameter list during kernel launch.

Prototype

1
aclError aclrtKernelArgsGetMemSize(aclrtFuncHandle funcHandle, size_t userArgsSize, size_t *actualArgsSize)

Parameters

Parameter

Input/Output

Description

funcHandle

Input

Kernel function handle. For details about the type definition, see aclrtFuncHandle.

userArgsSize

Input

Memory size required for storing the parameter list data, in bytes.

The memory size of each parameter data must be 8-byte aligned. userArgsSize is the sum of the memory sizes of all aligned parameter data.

actualArgsSize

Output

Actual memory size in bytes required by the parameter list during kernel launch.

Returns

0 on success; else, failure. For details, see aclError.