Function: kernel_args_get_handle_mem_size
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the memory size occupied by the parameter list handle.
Prototype
- C Prototype
1aclError aclrtKernelArgsGetHandleMemSize(aclrtFuncHandle funcHandle, size_t *memSize)
- Python Function
1mem_size, ret = acl.rt.kernel_args_get_handle_mem_size(func_handle)
Parameter Description
Parameter |
Description |
|---|---|
func_handle |
Int, kernel function handle. Call acl.rt.binary_get_function to obtain the kernel function handle, and pass it as an input parameter. |
Return Value Description
Return Value |
Description |
|---|---|
mem_size |
Int, memory size (in bytes) occupied by the parameter list handle. |
ret |
Int, 0 on success; else, failure. |
Parent topic: Kernel Loading and Execution