Function: mark

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

Marks an instantaneous event by msproftx.

After this API is called, the Profiling tool automatically adds the current timestamp to stamp and sets the event type to Mark, indicating that a msproftx profiling process starts.

Prototype

  • C Prototype
    1
    aclError aclprofMark(void *stamp)
    
  • Python Function
    1
    ret = acl.prof.mark(stamp)
    

Parameters

Parameter

Description

stamp

Int, stamp pointer address, indicating the msproftx event stamp. This specifies the pointer to the Function: create_stamp API.

Return Value

Return Value

Description

ret

Int, error code.

  • 0 indicates success.
  • Other values indicate failure.

Restrictions

This method is called between function: create_stamp and function: destroy_stamp.