mstxMarkA

Supported Products

Product Supported
Ascend 910_95 AI Processors
Atlas A3 training products/Atlas A3 inference products
Atlas A2 training products/Atlas A2 inference products
Atlas 200I/500 A2 inference products
Atlas inference products
Atlas training products

Function

Marks an instantaneous event.

Prototype

void mstxMarkA(const char *message, aclrtStream stream)

Parameter Description

Table 1 Parameter description

Parameter Input/Output Description
message Input Pointer to the string carrying information for the trace event.
Length requirement for the input message string: MSPTI scenario: cannot exceed 255 bytes.
Non-MSPTI scenario (for example, msprof command line, Ascend PyTorch Profiler): cannot exceed 156 bytes.
message cannot be a null pointer.
stream Input Stream used to execute the trace task.
When set to nullptr, only marks the instantaneous event on the Host side.
When set to a valid stream, marks the instantaneous event on both the Host side and the corresponding Device side.

Returns

None