aclrtFunctionGetParamCount
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.