HCCL_ALGO

Description

Configures the communication algorithms between servers and supernodes. The algorithms can be configured globally or by operator.

This section only briefly describes the algorithm functions. For details, see Introduction to Collective Communication Algorithms.

  • HCCL provides the adaptive algorithm selection function, so that it can select an appropriate algorithm by default based on the product form, data size, and number of servers, requiring no manual configuration. Enabling this environment variable to specify the inter-server or inter-supernode communication algorithm would invalidate the adaptive algorithm selection function.
  • In some communication operators, when a specific type of AI processor is used and the data size is small, the communication algorithm is adaptively selected by HCCL and not controlled by this environment variable.

Example

Restrictions

Supported Algorithms for Communication Between Servers

Table 1 Supported algorithms for communication between servers

Algorithm Type

Collective Communication Operator

Data Type

Network Running Mode

Deterministic Computing

Supported Products

Unsupported Operator Processing Method

ring

ReduceScatter, AllGather, AllReduce, and Reduce

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64 (supported only in single-operator mode on the Atlas A3 training products / Atlas A3 inference products ), float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

Scatter

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

H-D_R

ReduceScatter, AllGather, AllReduce, Broadcast, and Reduce

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

The NHR or ring algorithm is automatically selected.

NHR

ReduceScatter, AllGather, AllReduce, and Broadcast

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64 (supported only in single-operator mode on the Atlas A3 training products / Atlas A3 inference products ), float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

Scatter

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

NHR_V1

ReduceScatter, AllGather, AllReduce, and Broadcast

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

NB

ReduceScatter, AllGather, AllReduce, and Broadcast

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64 (supported only in single-operator mode on the Atlas A3 training products / Atlas A3 inference products ), float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • The graph mode (Ascend IR) is supported only on the Atlas A2 training products / Atlas A2 inference products .

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

Scatter

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

AHC

ReduceScatter, AllGather, and AllReduce

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

pipeline

AllReduce

int8, int16, int32, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR): For the floating-point compute overflow mode, the saturation mode is not supported and only the INF/NaN mode is supported.

Not supported

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

AllGather

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

-

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

ReduceScatter

int8, int16, int32, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Not supported

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

AlltoAll

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Dynamic shape scenario of the graph mode (Ascend IR)

-

Atlas A2 training products / Atlas A2 inference products

The pairwise algorithm is automatically selected.

AlltoAllV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Dynamic shape scenario of the graph mode (Ascend IR)

-

Atlas A2 training products / Atlas A2 inference products

The pairwise algorithm is automatically selected.

AlltoAllVC

int8, int16, int32, int64, float16, float32, and bfp16

Dynamic shape scenario of the graph mode (Ascend IR)

-

Atlas A2 training products / Atlas A2 inference products

The pairwise algorithm is automatically selected.

pairwise

AlltoAll, AlltoAllV, and AlltoAllVC

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

-

Atlas A2 training products / Atlas A2 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

Supported Algorithms for Communication Between Supernodes

Table 2 Supported Algorithms for Communication Between Supernodes

Algorithm Type

Collective Communication Operator

Data Type

Network Running Mode

Deterministic Computing

Supported Products

Unsupported Operator Processing Method

ring

ReduceScatter, AllGather, AllReduce, and Reduce

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

Scatter and AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR or H-D_R algorithm is automatically selected.

H-D_R

AllReduce, Broadcast, and Reduce

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR or ring algorithm is automatically selected.

NHR

ReduceScatter, AllGather, AllReduce, and Broadcast

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

Scatter and AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The H-D_R or ring algorithm is automatically selected.

NB

ReduceScatter, AllGather, AllReduce, and Broadcast

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode
  • Graph mode (Ascend IR)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

ReduceScatterV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

Scatter and AllGatherV

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

pipeline

AllGather

int8, int16, int32, int64, float16, float32, and bfp16

  • Single-operator mode (valid only when zero copy is enabled)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

ReduceScatter

int8, int16, int32, float16, float32, and bfp16

  • Single-operator mode (valid only when zero copy is enabled)

Supported

Atlas A3 training products / Atlas A3 inference products

The NHR, H-D_R, or ring algorithm is automatically selected.

Applicability

Atlas training products

Atlas A2 training products / Atlas A2 inference products

Atlas A3 training products / Atlas A3 inference products