aclrtKernelArgsGetMemSize
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the actual memory size required by the parameter list during kernel launch.
Prototype
aclError aclrtKernelArgsGetMemSize(aclrtFuncHandle funcHandle, size_t userArgsSize, size_t *actualArgsSize)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
funcHandle |
Input |
Kernel function handle. |
userArgsSize |
Input |
Memory size required for storing the parameter list data, in bytes. The memory size of each parameter data must be 8-byte aligned. userArgsSize is the sum of the memory sizes of all aligned parameter data. |
actualArgsSize |
Output |
Actual memory size in bytes required by the parameter list during kernel launch. |
Returns
0 on success; else, failure. For details, see aclError.
Parent topic: Kernel Loading and Execution