aclrtKernelArgsAppend
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Appends and copies a user-defined parameter value to the parameter data area to which argsHandle points. If there are multiple parameters in the parameter list, append the parameters in sequence.
To update the parameter value, call aclrtKernelArgsParaUpdate.
Prototype
1 | aclError aclrtKernelArgsAppend(aclrtArgsHandle argsHandle, void *param, size_t paramSize, aclrtParamHandle *paramHandle) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
argsHandle |
Input |
Handle to the parameter list. For details about the type definition, see aclrtArgsHandle. |
param |
Input |
Memory address of the parameter value to be appended. This is a host memory address. |
paramSize |
Input |
Memory size, in bytes. |
paramHandle |
Output |
Parameter handle. For details about the type definition, see aclrtParamHandle. |
Returns
0 on success; otherwise, failure. For details, see aclError.