aclrtKernelArgsGetPlaceHolderBuffer
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the memory address to which the paramHandle placeholder points based on the memory size specified by the user.
Prototype
aclError aclrtKernelArgsGetPlaceHolderBuffer(aclrtArgsHandle argsHandle, aclrtParamHandle paramHandle, size_t dataSize, void **bufferAddr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
argsHandle |
Input |
Handle to the argument list. |
paramHandle |
Input |
Parameter handle. The value of paramHandle must be the same as that of paramHandle in aclrtKernelArgsAppendPlaceHolder. |
dataSize |
Input |
Memory size. |
bufferAddr |
Output |
Memory address to which the paramHandle placeholder points. You need to manage the data in the memory, but not the memory lifecycle. |
Returns
0 on success; else, failure. For details, see aclError.