Function: create_stamp
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
Creates a msproftx event stamp. When Function: mark, Function: set_stamp_trace_message, Function: push, and Function: range_start are called later, the pointer address that describes the event must be used as the input to record the time span of the event.
This API is used in pair with Function: destroy_stamp and after Function: start is called.
Prototype
-
C Prototype
void *aclprofCreateStamp(void) -
Python Function
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. |
Constraints
This API is used in pair with Function: destroy_stamp and after acl.prof.start is called.