GetRankId

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

x

Atlas inference product's Vector Core

x

Atlas training products

x

Function

Obtains the rank ID of the current device. By default, this API works on all cores. You can also specify a core by setting GetBlockIdx before calling this API.

Prototype

1
__aicore__ inline uint32_t GetRankId()

Parameters

None

Returns

Returns the rank ID of the current device.

Restrictions

None

Example

For details, see the examples in GetWindowsInAddr.