Function: range_stop

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

Records the end time of the time span by msproftx when an event occurs.

After this API is called, the Profiling tool automatically records the end timestamp in stamp.

Prototype

  • C Prototype
    1
    aclError aclprofRangeStop(uint32_t *rangeId)
    
  • Python Function
    1
    ret = acl.prof.range_stop(range_id)
    

Parameters

Parameter

Description

range_id

Int, unique ID of a msproftx event stamp. Used to distinguish between threads.

Return Values

Return Value

Description

ret

Int, error code.

Restrictions