mstxDomainMarkA

Function Description

Marks an instantaneous event in a specified domain.

If the input domain has been destroyed, an alarm is recorded in the log and the dotting process is not performed.

Function Prototype

1
void mstxDomainMarkA(mstxDomainHandle_t domain, const char *message, aclrtStream stream)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

domain

Input

Specified domain handle.

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.

stream

Input

Stream for executing dotting tasks.

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

Returns

None