mstxRangeEnd

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 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

Parameter Input/Output Description
id (C/C++) Input ID returned by mstxRangeStartA (C/C++).
range_id (Python) Input range_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.