Function: create_stamp

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

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 Function: start.