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