Function: init

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

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

Prototype

  • C Prototype

    aclError aclprofInit(const char *profilerResultPath, size_t length)
    
  • Python Function

    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.
0: success
If other values are returned, the operation fails.

Constraints

This API is used in pair with acl.prof.finalize. Call aclprofInit before aclprofFinalize.