Function: get_function_name
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the kernel function name based on a kernel function handle.
Prototype
- C Prototype
1aclError aclrtGetFunctionName(aclrtFuncHandle funcHandle, uint32_t maxLen, char *name)
- Python Function
1func_name, ret = acl.rt.get_function_name(func_handle, max_len)
Parameter Description
Parameter |
Description |
|---|---|
func_handle |
Int, kernel function handle. |
max_len |
Int, maximum memory size (in bytes) for storing the kernel function name. The value range is [0, 1024). |
Return Value Description
Return Value |
Description |
|---|---|
func_name |
Str, kernel function name. |
ret |
Int, 0 on success; else, failure. |
Parent topic: Kernel Loading and Execution