Function: init

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

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

√

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 Values

Return Value

Description

ret

Int, error code.

Restrictions

acl.prof.finalize must be used in pair with and be called after aclprofInit.