GetRankDim

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

Obtains the number of ranks in a communicator. 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 GetRankDim()

Parameters

None

Returns

Number of cards in a communicator.

Constraints

None

Examples

For details, see the examples in GetWindowsInAddr.