aclrtFunctionGetParamInfo

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Obtains parameter information (offset and size) from the kernel function handle based on the index.

Prototype

1
aclError aclrtFunctionGetParamInfo(const void *func, size_t paramIndex, size_t *paramOffset, size_t *paramSize)

Parameters

Parameter

Input/Output

Description

func

Input

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

paramIndex

Input

Parameter index.

You can call the aclrtFunctionGetParamCount API to obtain the number of available parameters. The value range of paramIndex is [0, Number of parameters – 1].

paramOffset

Output

Offset of a parameter in the parameter data area, in bytes.

paramSize

Output

Parameter size, in bytes.

Returns

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