Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
☓ |
|
√ |
|
√ |
For
For the
Destroys a specified HCCL communicator.
1 | HcclResult HcclCommDestroy(HcclComm comm) |
Parameter |
Input/Output |
Description |
|---|---|---|
comm |
Input |
Pointer to the communicator to be destroyed. For details about the definition of the HcclComm type, see HcclComm. |
HcclResult: HCCL_SUCCESS on success, or else failure.
After the communicator is successfully destroyed, the communication operator that is being executed exits without waiting for the timeout and reports an error. The error log is printed, with the keyword of "Terminating operation due to external request".
1 2 3 4 5 6 7 8 9 | uint32_t rankSize = 2; int32_t devices[rankSize] = {0, 1}; HcclComm comms[rankSize]; // Initialize the communicator. HcclCommInitAll(rankSize, devices, comms); // Destroy the communicator. for (uint32_t i = 0; i < rankSize; i++) { HcclCommDestroy(comms[i]); } |