Function: get_function_name

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Obtains a kernel function name based on the kernel function handle.

Prototype

  • C Prototype

    aclError aclrtGetFunctionName(aclrtFuncHandle funcHandle, uint32_t maxLen, char *name)
    
  • Python Function

    func_name, ret = acl.rt.get_function_name(func_handle, max_len)
    

Parameters

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 Values

Return Value Description
func_name Str, kernel function name.
ret Int. If 0 is returned, the operation is successful. If other values are returned, the operation fails.