Function: kernel_args_append
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Appends and copies the user-defined parameter values to the parameter data area to which argsHandle points. If there are multiple parameters in the parameter list, append the parameters in sequence.
Call acl.rt.kernel_args_para_update to update parameter values if needed.
Prototype
- C Prototype
1aclError aclrtKernelArgsAppend(aclrtArgsHandle argsHandle, void *param, size_t paramSize, aclrtParamHandle *paramHandle)
- Python Function
1param_handle, ret = acl.rt.kernel_args_append(args_handle, param, param_size)
Parameter Description
Parameter |
Description |
|---|---|
args_handle |
Int, handle of the parameter list. |
param |
Int, memory address of the parameter value to be appended. This is the host memory address. |
param_size |
Int, memory size, in bytes. |
Return Value Description
Return Value |
Description |
|---|---|
param_handle |
Int, parameter handle. |
ret |
Int, 0 on success; else, failure. |