aclrtFunctionGetParamCount

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 the number of parameters based on the kernel function handle.

After using this API to query the number of parameters in the parameter list of the kernel function, you can call the aclrtFunctionGetParamInfo API to obtain the detailed information (offset and size) about each parameter.

Prototype

1
aclError aclrtFunctionGetParamCount(const void *func, size_t *paramCount)

Parameters

Parameter

Input/Output

Description

func

Input

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

paramCount

Output

Number of parameters contained in the kernel function parameter list.

Returns

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