Function: create_stamp

Applicability

Product

Supported (√/x)

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

Function Usage

Creates a msproftx event stamp. 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()
    

Parameter Description

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.

Reference

For the API call example, see Profile Data Collection.