HCCL_RDMA_QP_PORT_CONFIG_PATH

Description

By default, one queue pair (QP) is created for data transfer during RDMA communication between two ranks. If you want to use multiple QPs for RDMA communication between two ranks and specify the source port numbers used for multi-QP communication, you can use this environment variable.

You can use this environment variable to specify the path for storing the configuration file that configures the mapping between <srcIP,dstIP> and ports. When multiple port numbers are configured for <srcIP,dstIP>, the system enables multi-QP communication, and the configured port numbers are the source ports used by each QP.

Environment variable configuration (example):

export HCCL_RDMA_QP_PORT_CONFIG_PATH=/home/tmp

/home/tmp indicates the path for storing the configuration file MultiQpSrcPort.cfg of the mapping between <srcIP,dstIP> and the ports. The path can be an absolute path or a relative path, with a maximum of 4096 characters.

The MultiQpSrcPort.cfg file needs to be customized by the user. Note that the file name must be MultiQpSrcPort.cfg. The configuration format is as follows:

srcIP1,dstIP1=srcPort0,srcPort1,...,srcPortN
srcIPN,dstIPN=srcPort0,srcPort1,...,srcPortN

The following is a configuration example of the MultiQpSrcPort.cfg file:

192.168.100.2,192.168.100.3=61100,61101,61102
192.168.100.4,192.168.100.5=61100,61101,61102,61104
0.0.0.0,192.168.100.122=65515,65516,65513

Example

export HCCL_RDMA_QP_PORT_CONFIG_PATH=/home/tmp

Constraints

Applicability

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 A3 training product/Atlas A3 inference product