mstxRangeStartA

Prototype

mstxRangeId mstxRangeStartA(const char *message, aclrtStream stream);

Function Description

Indicates the start of a time segment event.

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

message

Input

Pointer to the marking that carries a message string. The length of the input message string cannot exceed 128 bytes.

stream

Input

Stream for executing marking tasks.

  • If this parameter is set to nullptr, only instantaneous events on the host are marked.
  • Marks instantaneous events on the host and device when a valid stream is configured.

Returns

range_id: Range ID. If the operation fails, 0 is returned.