HcclGetHeterogMode
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
For
Function
Obtains the heterogeneous networking mode of a given communicator.
Prototype
1 | HcclResult HcclGetHeterogMode(HcclComm comm, HcclHeterogMode *mode) |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
comm |
Input |
Communicator where the collective communication operation is performed. The HcclComm type is defined as follows:
|
||
mode |
Output |
Heterogeneous mode. For details about the HcclHeterogMode type, see HcclHeterogMode. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
None
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | HcclHeterogMode mode; HcclResult ret = HcclGetHeterogMode(comm, &mode); if (ret == HCCL_SUCCESS) { switch (mode) { case HCCL_HETEROG_MODE_HOMOGENEOUS: printf("Homogeneous networking\n"); break; case HCCL_HETEROG_MODE_MIX_A2_A3: printf("A2/A3 heterogeneous networking\n"); break; default: printf ("Unknown networking mode\n"); break; } } |