HcclGetCommName
Description
Obtains the name of the communicator where the current collective communication operation is performed.
Prototype
HcclResult HcclGetCommName(HcclComm comm, char* commName)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
comm |
Input |
Communicator where the operation is performed. For details about the definition of the HcclComm type, see HcclComm. |
commName |
Output |
Name of the obtained communicator. The value is of the char* type and can contain a maximum of 128 bytes. |
Returns
HcclResult: HCCL_SUCCESS on success; else, failure.
Constraints
None
Applicability
Example
1 2 3 | string commName; HcclComm comm; HcclGetCommNam(comm, &commName); |
Parent topic: Communicator Management