HCCL_SOCKET_FAMILY

Description

Sets the IP protocol used by the communication NIC. The options are as follows:
  • AF_INET: The IPv4 protocol is used.
  • AF_INET6: The IPv6 protocol is used.

By default, IPv4 is used.

This environment variable can be used in the following scenarios:
  • IP protocol version used by the communication NIC on the host during HCCL initialization

    In this scenario, this environment variable must be used together with HCCL_SOCKET_IFNAME. When HCCL obtains the host IP address by specifying the NIC name, this environment variable is used to specify the IP protocol for socket communication of the NIC.

  • IP protocol version used by the communication NIC on the device during HCCL initialization.

    In this scenario, if the IP protocol specified by the environment variable does not match the obtained NIC information, use the NIC information in the actual environment.

    For example, if the environment variable specifies the IPv6 protocol but only the IPv4 NIC exists on the device, the IPv4 NIC is used.

Example

export HCCL_SOCKET_FAMILY=AF_INET       #IPv4
export HCCL_SOCKET_FAMILY=AF_INET6      #IPv6

Constraints

None

Applicability

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product (For Atlas A2 training product/Atlas A2 inference product, only the Atlas 800T A2 training server, Atlas 900 A2 PoD cluster basic unit, and Atlas 200T A2 Box16 heterogeneous subrack are supported.)

Atlas training product

Atlas inference product (For Atlas inference product, only Atlas 300I Duo Inference Card is supported.)