Function: create_stamp

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

Creates a msproftx event flag. When Function: mark, Function: set_stamp_trace_message, Function: push, or Function: range_start is called, the pointer address that describes the event is used as the input to record the time span of the event.

This API must be used in pair with Function: destroy_stamp and after Function: start.

Prototype

  • C Prototype
    1
    void *aclprofCreateStamp(void)
    
  • Python Function
    1
    stamp = acl.prof.create_stamp()
    

Parameters

Parameter

Description

stamp

Int, pointer address.

  • If 0 is returned, the operation fails.
  • If a pointer address of the void type is returned, the operation is successful.

Restrictions

This API must be used in pair with Function: destroy_stamp and after acl.prof.start.