Function: kernel_args_get_mem_size
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the actual size of the memory required by the parameter list during kernel launch.
Prototype
- C Prototype
1aclError aclrtKernelArgsGetMemSize(aclrtFuncHandle funcHandle, size_t userArgsSize, size_t *actualArgsSize)
- Python Function
1actual_args_size, ret = acl.rt.kernel_args_get_mem_size(func_handle, user_args_size)
Parameters
Parameter |
Description |
|---|---|
func_handle |
Int, kernel function handle. Call acl.rt.binary_get_function to obtain the kernel function handle and transfer it to this API as an input parameter. |
user_args_size |
Int, memory size (in bytes) required for storing the parameter list data. The memory size of each parameter data must be 8-byte aligned. user_args_size is the sum of the memory sizes of the aligned parameter data. |
Return Value
Return Value |
Description |
|---|---|
actual_args_size |
Int, actual memory size (in bytes) required by the parameter list during kernel launch. |
ret |
Int, 0 on success; else, failure. |