Function: init

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

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)
    

Parameter Description

Parameter

Description

profiler_result_path

Str, an absolute path for saving profile data files.

Return Value Description

Return Value

Description

ret

Int, error code.

Reference

For the API call example, see Profile Data Collection.