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

-

Communication ID of the current card.

rankRoot

Input

int32_t

-

Primary communication ID.

rankSize

Input

int32_t

-

Number of communication cards.

commName

Output

char *

-

Communicator name.

Restrictions

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

Supported only by Atlas A2 training products/Atlas A2 inference products and Atlas A3 inference products/Atlas A3 training products.