Function: destroy_config

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

Destroys data of the aclprofConfig type created by calling acl.prof.create_config.

Prototype

  • C Prototype

    aclError aclprofDestroyConfig(const aclprofConfig *profilerConfig)
    
  • Python Function

    ret = acl.prof.destroy_config(profiler_config)
    

Parameters

Parameter Description
profiler_config Int, pointer address of the aclprofConfig type to be destroyed.

Return Values

Return Value Description
ret Int, error code.
0: success
If other values are returned, the operation fails.

Constraints

  • This API is used in pair with acl.prof.create_config. Call acl.prof.create_config before aclprofDestroyConfig.
  • If the same aclprofConfig data repeatedly calls the acl.prof.destroy_config API, an error indicating repeated memory release will be reported.