Function: start

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

Starts profile data collection.

You can call the acl.prof.start API as required during model execution. The data collected by Profiling is the data after the API is called.

Prototype

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

Parameters

Parameter

Description

profiler_config

Int, profiling configuration.

Call acl.prof.create_config to create data of the aclprofConfig type in advance.

Return Value

Return Value

Description

ret

Int, error code.

Restrictions

Use this API together with the acl.prof.stop API. Call acl.prof.start first and then acl.prof.stop.