mstxRangeEnd

Supported Products

ProductSupported
Ascend 950 products√
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 the end position of the mstx range capability.

Prototype

C/C++ function prototype:

void mstxRangeEnd(mstxRangeId id)

Python function:

mstx.range_end(range_id)

Parameter Description

Table 1 Parameter description

ParameterInput/OutputDescription
id (C/C++)InputID returned by mstxRangeStartA (C/C++).
range_id (Python)Inputrange_id returned by mstx.range_start (Python).

Returns

If 0 is returned, it indicates failure.

Example

C/C++ call: The mstxRangeEnd API must be used together with mstxRangeStartA. For details, see C/C++ Calling Method.

Python call: The mstx.range_end API must be used together with mstx.range_start. For a specific example, see Python Calling Method.