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, HCCL_SOCKET_FAMILY must be used together with HCCL_SOCKET_IFNAME. When HCCL obtains the host IP address by specifying the NIC name, HCCL_SOCKET_FAMILY is used to specify the socket communication IP protocol 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

Restrictions

None

Applicability

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products (For Atlas A2 training products/Atlas A2 inference products, 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 products

Atlas inference products (For the Atlas inference products, only the Atlas 300I Duo inference card is supported.)