aclrtKernelArgsInit
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Initializes the parameter list based on the kernel function handle and obtains the handle that identifies the parameter list.
The difference between this API and aclrtKernelArgsInitByUserMem is that the system manages the memory when this API is called.
Prototype
aclError aclrtKernelArgsInit(aclrtFuncHandle funcHandle, aclrtArgsHandle *argsHandle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
funcHandle |
Input |
Kernel function handle. Call aclrtBinaryGetFunctionByEntry or aclrtBinaryGetFunction to obtain the kernel function handle, and pass it as an input parameter. |
argsHandle |
Output |
Handle of the parameter list. |
Returns
0 on success; else, failure. For details, see aclError.