GetRankDim
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
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.
Restrictions
None
Example
For details, see the examples in GetWindowsInAddr.
Parent topic: HCCL Kernel APIs