CreateHcclComm

Description

Creates a single-server multi-device communicator in rootInfo mode when the backend is HCCL.

Definition

1
2
3
4
5
6
namespace atb {
using void *HcclComm;
namespace Comm {
HcclComm CreateHcclComm(int32_t rank, int32_t rankRoot, int32_t rankSize, char *commName);
}; // namespace Comm
} // namespace atb

Parameters

Member

Input/Output

Type

Default Value

Description

rank

Input

int32_t

-

Rank of the current device within the communicator.

rankRoot

Input

int32_t

-

Root rank for the operation.

rankSize

Input

int32_t

-

Number of devices.

commName

Output

char *

-

Communicator name.

Constraints

rank, rankSize, and rankRoot must meet the following conditions:
  • 0 ≤ rank < rankSize
  • 0 ≤ rankRoot < rankSize

Only Atlas A2 training products/Atlas A2 inference products and Atlas A3 inference products/Atlas A3 training products are supported.