Function: destroy_config

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

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

Prototype

  • C Prototype
    1
    aclError aclprofDestroyConfig(const aclprofConfig *profilerConfig)
    
  • Python Function
    1
    ret = acl.prof.destroy_config(profiler_config)
    

Parameters

Parameter

Description

profiler_config

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

Return Value

Return Value

Description

ret

Int, error code.

Restrictions

  • Use this API together with the acl.prof.create_config API. Call acl.prof.create_config first and then aclprofDestroyConfig.
  • If the same aclprofConfig pointer repeatedly calls the acl.prof.destroy_config API, an error indicating that the memory is freed repeatedly is reported.