Function: init

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

Initializes profiling and sets the path for saving profile data files.

Prototype

  • C Prototype
    1
    aclError aclprofInit(const char *profilerResultPath, size_t length)
    
  • Python Function
    1
    ret = acl.prof.init(profiler_result_path)
    

Parameters

Parameter

Description

profiler_result_path

Str, an absolute path for saving profile data files.

Return Value

Return Value

Description

ret

Int, error code.

Restrictions

Use this API together with the acl.prof.finalize API. Call acl.prof.init first and then acl.prof.finalize.