Function: kernel_args_init
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Initializes the parameter list based on the kernel function handle and obtains the handle that identifies the parameter list.
Different from the acl.rt.kernel_args_init_by_user_mem API, this API indicates that the memory is managed by the system.
Prototype
- C Prototype
1aclError aclrtKernelArgsInit(aclrtFuncHandle funcHandle, aclrtArgsHandle *argsHandle)
- Python Function
1args_handle, ret = acl.rt.kernel_args_init(func_handle)
Parameter Description
Parameter |
Description |
|---|---|
func_handle |
Int, kernel function handle. Call acl.rt.binary_get_function to obtain the kernel function handle, and pass it as an input parameter. |
Return Value Description
Return Value |
Description |
|---|---|
args_handle |
Int, handle of the parameter list. |
ret |
Int, 0 on success; else, failure. |
Parent topic: Kernel Loading and Execution