Function: mark
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
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
aclError aclprofMark(void *stamp) -
Python Function
ret = acl.prof.mark(stamp)
Parameters
| Parameter | Description |
|---|---|
| stamp | Int, stamp pointer address, indicating the msproftx event stamp. Specifies the pointer address of the function: create_stamp API. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successOther values: failure |
Constraints
Call this API between Function: create_stamp and Function: destroy_stamp.