HcclGetRankId
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
For
Function
Obtains the rank ID of a device in a specified communicator.
Prototype
1 | HcclResult HcclGetRankId(HcclComm comm, uint32_t *rank) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
comm |
Input |
Communicator where the collective communication operation is performed. The HcclComm type is defined as follows: typedef void *HcclComm; |
rank |
Output |
Pointer to the output address of the rank ID in the collective communicator. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
None
Example
1 2 3 | uint32_t rank; HcclComm comm; HcclGetRankId(comm, &rank); |