aclrtKernelArgsAppend
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
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 aclrtKernelArgsParaUpdate to update parameter values if needed.
Prototype
aclError aclrtKernelArgsAppend(aclrtArgsHandle argsHandle, void *param, size_t paramSize, aclrtParamHandle *paramHandle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
argsHandle |
Input |
Handle of the parameter list. |
param |
Input |
Memory address of the parameter value to be appended. This is the host memory address. |
paramSize |
Input |
Memory size, in bytes. |
paramHandle |
Output |
Parameter handle. |
Returns
0 on success; else, failure. For details, see aclError.