mstxMarkA

Function Description

Identifies an instantaneous event.

Function Prototype

1
void mstxMarkA(const char *message, aclrtStream stream)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

message

Input

String pointer to the dotting information.

Length of the input message string:

  • In MSPTI scenarios, the length cannot exceed 255 bytes.
  • In scenarios other than MSPTI (such as msProf command line and Ascend PyTorch Profiler), the length cannot exceed 156 bytes.
    NOTE:

    message cannot be a null pointer.

stream

Input

Stream for executing dotting tasks.

  • Marks only instantaneous events on the host when nullptr is configured.
  • Identifies instantaneous events on the host and device when a valid stream is configured.

Returns

None