[GH-ISSUE #38] Test test_low_latency.py failed on H100 with ROCE #36

Open
opened 2026-10-26 09:52:54 +00:00 by bsakaguchi · 38 comments
Owner

Originally created by @ImbaPlayer on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/38

Issue Description

I'm working on an H100 GPU cluster with RoCE drivers properly installed on the network interface cards.
While the test_intranode.py script runs successfully and produces expected results, the test_low_latency consistently fails with errors.
Technical Details:

  • NVSHMEM version installed: 3.1.7-1 (following the README instructions)
  • Suspected compatibility issue: Potential mismatch between NVSHMEM version and RoCE configuration

I would greatly appreciate any assistance or insights to resolve this. Below are the specific error messages for reference:

Actual Result

(base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py
local_rank:1, ip:127.0.0.1 port:3004
world_size:2, rank:1
local_rank:0, ip:127.0.0.1 port:3004
world_size:2, rank:0
setting....
setting....
setted...
rank:0, num_ranks:2
Allocating buffer size: 2116.292096 MB ...

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed
ibv_modify_qp failed


/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 ep_connect failed
ep_connect failed


/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 transport create connect failed
transport create connect failed


/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed
connect EPS failed


/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 nvshmem setup connections failed
nvshmem setup connections failed


/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 ep_connect failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 transport create connect failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed
/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110
ibv_modify_qp failed
/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7
nvshmem setup connections failed
/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7
ep_connect failed
/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074:
nvshmem initialization failed, exiting
/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7
transport create connect failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 nvshmem setup connections failed

/work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

W0303 20:33:45.904000 12712 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 12777 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with exit code 255

Env

Ubuntu2204

Linux ubuntu 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

nvidia-smi

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.05              Driver Version: 560.35.05      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA H100 80GB HBM3          Off |   00000000:18:00.0 Off |                    0 |
| N/A   22C    P0             68W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA H100 80GB HBM3          Off |   00000000:2A:00.0 Off |                    0 |
| N/A   25C    P0             71W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   2  NVIDIA H100 80GB HBM3          Off |   00000000:3A:00.0 Off |                    0 |
| N/A   24C    P0             69W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   3  NVIDIA H100 80GB HBM3          Off |   00000000:5D:00.0 Off |                    0 |
| N/A   22C    P0             70W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   4  NVIDIA H100 80GB HBM3          Off |   00000000:9A:00.0 Off |                    0 |
| N/A   24C    P0             71W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   5  NVIDIA H100 80GB HBM3          Off |   00000000:AB:00.0 Off |                    0 |
| N/A   25C    P0             72W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   6  NVIDIA H100 80GB HBM3          Off |   00000000:BA:00.0 Off |                    0 |
| N/A   23C    P0             70W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   7  NVIDIA H100 80GB HBM3          Off |   00000000:DB:00.0 Off |                    0 |
| N/A   22C    P0             69W /  700W |       1MiB /  81559MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

ibv_devinfo

hca_id: mlx5_0
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:0059:910c
        sys_image_guid:                 a088:c203:0059:910c
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_1
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:0050:a72c
        sys_image_guid:                 a088:c203:0050:a72c
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_2
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:007e:1dba
        sys_image_guid:                 a088:c203:007e:1dba
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_3
        transport:                      InfiniBand (0)
        fw_ver:                         16.35.4030
        node_guid:                      e8eb:d303:0055:750a
        sys_image_guid:                 e8eb:d303:0055:750a
        vendor_id:                      0x02c9
        vendor_part_id:                 4119
        hw_ver:                         0x0
        board_id:                       MT_0000000425
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_4
        transport:                      InfiniBand (0)
        fw_ver:                         16.35.4030
        node_guid:                      e8eb:d303:0055:750b
        sys_image_guid:                 e8eb:d303:0055:750a
        vendor_id:                      0x02c9
        vendor_part_id:                 4119
        hw_ver:                         0x0
        board_id:                       MT_0000000425
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_5
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:0060:27e6
        sys_image_guid:                 a088:c203:0060:27e6
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_6
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:007e:1c3a
        sys_image_guid:                 a088:c203:007e:1c3a
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_7
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:0060:2b1e
        sys_image_guid:                 a088:c203:0060:2b1e
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_8
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:007d:ab62
        sys_image_guid:                 a088:c203:007d:ab62
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_9
        transport:                      InfiniBand (0)
        fw_ver:                         28.42.1000
        node_guid:                      a088:c203:007d:ab9a
        sys_image_guid:                 a088:c203:007d:ab9a
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet
Originally created by @ImbaPlayer on GitHub (Mar 3, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/38 # Issue Description I'm working on an H100 GPU cluster with RoCE drivers properly installed on the network interface cards. While the `test_intranode.py` script runs successfully and produces expected results, the `test_low_latency` consistently fails with errors. Technical Details: - NVSHMEM version installed: 3.1.7-1 (following the README instructions) - Suspected compatibility issue: Potential mismatch between NVSHMEM version and RoCE configuration I would greatly appreciate any assistance or insights to resolve this. Below are the specific error messages for reference: # Actual Result ```bash (base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py local_rank:1, ip:127.0.0.1 port:3004 world_size:2, rank:1 local_rank:0, ip:127.0.0.1 port:3004 world_size:2, rank:0 setting.... setting.... setted... rank:0, num_ranks:2 Allocating buffer size: 2116.292096 MB ... /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 ep_connect failed ep_connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 transport create connect failed transport create connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed connect EPS failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 nvshmem setup connections failed nvshmem setup connections failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1432: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1499: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:1001: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.1.7-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting W0303 20:33:45.904000 12712 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 12777 via signal SIGTERM Traceback (most recent call last): File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module> torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes while not context.join(): ^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join raise ProcessExitedException( torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with exit code 255 ``` # Env Ubuntu2204 ```bash Linux ubuntu 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ``` nvidia-smi ```bash +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 560.35.05 Driver Version: 560.35.05 CUDA Version: 12.6 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA H100 80GB HBM3 Off | 00000000:18:00.0 Off | 0 | | N/A 22C P0 68W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 1 NVIDIA H100 80GB HBM3 Off | 00000000:2A:00.0 Off | 0 | | N/A 25C P0 71W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 2 NVIDIA H100 80GB HBM3 Off | 00000000:3A:00.0 Off | 0 | | N/A 24C P0 69W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 3 NVIDIA H100 80GB HBM3 Off | 00000000:5D:00.0 Off | 0 | | N/A 22C P0 70W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 4 NVIDIA H100 80GB HBM3 Off | 00000000:9A:00.0 Off | 0 | | N/A 24C P0 71W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 5 NVIDIA H100 80GB HBM3 Off | 00000000:AB:00.0 Off | 0 | | N/A 25C P0 72W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 6 NVIDIA H100 80GB HBM3 Off | 00000000:BA:00.0 Off | 0 | | N/A 23C P0 70W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ | 7 NVIDIA H100 80GB HBM3 Off | 00000000:DB:00.0 Off | 0 | | N/A 22C P0 69W / 700W | 1MiB / 81559MiB | 0% Default | | | | Disabled | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | No running processes found | +-----------------------------------------------------------------------------------------+ ``` ibv_devinfo ```bash hca_id: mlx5_0 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:0059:910c sys_image_guid: a088:c203:0059:910c vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_1 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:0050:a72c sys_image_guid: a088:c203:0050:a72c vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_2 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:007e:1dba sys_image_guid: a088:c203:007e:1dba vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_3 transport: InfiniBand (0) fw_ver: 16.35.4030 node_guid: e8eb:d303:0055:750a sys_image_guid: e8eb:d303:0055:750a vendor_id: 0x02c9 vendor_part_id: 4119 hw_ver: 0x0 board_id: MT_0000000425 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_4 transport: InfiniBand (0) fw_ver: 16.35.4030 node_guid: e8eb:d303:0055:750b sys_image_guid: e8eb:d303:0055:750a vendor_id: 0x02c9 vendor_part_id: 4119 hw_ver: 0x0 board_id: MT_0000000425 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_5 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:0060:27e6 sys_image_guid: a088:c203:0060:27e6 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_6 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:007e:1c3a sys_image_guid: a088:c203:007e:1c3a vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_7 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:0060:2b1e sys_image_guid: a088:c203:0060:2b1e vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_8 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:007d:ab62 sys_image_guid: a088:c203:007d:ab62 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_9 transport: InfiniBand (0) fw_ver: 28.42.1000 node_guid: a088:c203:007d:ab9a sys_image_guid: a088:c203:007d:ab9a vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet ```
Author
Owner

@sphish commented on GitHub (Mar 4, 2025):

This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5.
https://github.com/deepseek-ai/DeepEP/issues/17#issuecomment-2684327121

<!-- gh-comment-id:2695968432 --> @sphish commented on GitHub (Mar 4, 2025): This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. https://github.com/deepseek-ai/DeepEP/issues/17#issuecomment-2684327121
Author
Owner

@Baibaifan commented on GitHub (Mar 4, 2025):

This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. #17 (comment)

How to deal with conflicts in deepep patch packages?

<!-- gh-comment-id:2696035860 --> @Baibaifan commented on GitHub (Mar 4, 2025): > This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. [#17 (comment)](https://github.com/deepseek-ai/DeepEP/issues/17#issuecomment-2684327121) How to deal with conflicts in deepep patch packages?
Author
Owner

@sphish commented on GitHub (Mar 4, 2025):

This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. #17 (comment)

How to deal with conflicts in deepep patch packages?

For the current patch, the conflict is caused by a commit modifying the CMake file. You can skip this commit. I will later upload a new patch compatible with NVSHMEM 3.2.5.

<!-- gh-comment-id:2696076787 --> @sphish commented on GitHub (Mar 4, 2025): > > This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. [#17 (comment)](https://github.com/deepseek-ai/DeepEP/issues/17#issuecomment-2684327121) > > How to deal with conflicts in deepep patch packages? For the current patch, the conflict is caused by a commit modifying the CMake file. You can skip this commit. I will later upload a new patch compatible with NVSHMEM 3.2.5.
Author
Owner

@Baibaifan commented on GitHub (Mar 4, 2025):

This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. #17 (comment)

How to deal with conflicts in deepep patch packages?

For the current patch, the conflict is caused by a commit modifying the CMake file. You can skip this commit. I will later upload a new patch compatible with NVSHMEM 3.2.5.

I tried to modify the CMakeLists.txt file, but CMakeLists.txt has been refactored, and I don't know how to modify the original patch 140 and 165. I hope you can give me some suggestions. I'll wait for you to update the patch. @sphish

<!-- gh-comment-id:2696552609 --> @Baibaifan commented on GitHub (Mar 4, 2025): > > > This is a bug in NVSHMEM 3.1.7 and can be resolved by using NVSHMEM 3.2.5. [#17 (comment)](https://github.com/deepseek-ai/DeepEP/issues/17#issuecomment-2684327121) > > > > > > How to deal with conflicts in deepep patch packages? > > For the current patch, the conflict is caused by a commit modifying the CMake file. You can skip this commit. I will later upload a new patch compatible with NVSHMEM 3.2.5. I tried to modify the `CMakeLists.txt` file, but `CMakeLists.txt` has been refactored, and I don't know how to modify the original patch 140 and 165. I hope you can give me some suggestions. I'll wait for you to update the patch. @sphish
Author
Owner

@sphish commented on GitHub (Mar 5, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan
Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

<!-- gh-comment-id:2700192255 --> @sphish commented on GitHub (Mar 5, 2025): I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support
Author
Owner

@Baibaifan commented on GitHub (Mar 5, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

ok, I will try it and does the cmake configuration need to be modified? @sphish

CUDA_HOME=/path/to/cuda \
GDRCOPY_HOME=/path/to/gdrcopy \
NVSHMEM_SHMEM_SUPPORT=0 \
NVSHMEM_UCX_SUPPORT=0 \
NVSHMEM_USE_NCCL=0 \
NVSHMEM_MPI_SUPPORT=0 \
NVSHMEM_IBGDA_SUPPORT=1 \
NVSHMEM_PMIX_SUPPORT=0 \
NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \
NVSHMEM_USE_GDRCOPY=1 \
cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install
<!-- gh-comment-id:2700229586 --> @Baibaifan commented on GitHub (Mar 5, 2025): > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > ok, I will try it and does the cmake configuration need to be modified? @sphish ``` CUDA_HOME=/path/to/cuda \ GDRCOPY_HOME=/path/to/gdrcopy \ NVSHMEM_SHMEM_SUPPORT=0 \ NVSHMEM_UCX_SUPPORT=0 \ NVSHMEM_USE_NCCL=0 \ NVSHMEM_MPI_SUPPORT=0 \ NVSHMEM_IBGDA_SUPPORT=1 \ NVSHMEM_PMIX_SUPPORT=0 \ NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \ NVSHMEM_USE_GDRCOPY=1 \ cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install ```
Author
Owner

@sphish commented on GitHub (Mar 5, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

ok, I will try it and does the cmake configuration need to be modified? @sphish

CUDA_HOME=/path/to/cuda \
GDRCOPY_HOME=/path/to/gdrcopy \
NVSHMEM_SHMEM_SUPPORT=0 \
NVSHMEM_UCX_SUPPORT=0 \
NVSHMEM_USE_NCCL=0 \
NVSHMEM_MPI_SUPPORT=0 \
NVSHMEM_IBGDA_SUPPORT=1 \
NVSHMEM_PMIX_SUPPORT=0 \
NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \
NVSHMEM_USE_GDRCOPY=1 \
cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install

Nope.

<!-- gh-comment-id:2700234018 --> @sphish commented on GitHub (Mar 5, 2025): > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > ok, I will try it and does the cmake configuration need to be modified? [@sphish](https://github.com/sphish) > > ``` > CUDA_HOME=/path/to/cuda \ > GDRCOPY_HOME=/path/to/gdrcopy \ > NVSHMEM_SHMEM_SUPPORT=0 \ > NVSHMEM_UCX_SUPPORT=0 \ > NVSHMEM_USE_NCCL=0 \ > NVSHMEM_MPI_SUPPORT=0 \ > NVSHMEM_IBGDA_SUPPORT=1 \ > NVSHMEM_PMIX_SUPPORT=0 \ > NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \ > NVSHMEM_USE_GDRCOPY=1 \ > cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install > ``` Nope.
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 5, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?

<!-- gh-comment-id:2700947285 --> @kunfupanda-hw commented on GitHub (Mar 5, 2025): > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem?
Author
Owner

@sphish commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?

Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.

<!-- gh-comment-id:2702643378 --> @sphish commented on GitHub (Mar 6, 2025): > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem? Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.
Author
Owner

@Baibaifan commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

ok, I will try it and does the cmake configuration need to be modified? @sphish

CUDA_HOME=/path/to/cuda \
GDRCOPY_HOME=/path/to/gdrcopy \
NVSHMEM_SHMEM_SUPPORT=0 \
NVSHMEM_UCX_SUPPORT=0 \
NVSHMEM_USE_NCCL=0 \
NVSHMEM_MPI_SUPPORT=0 \
NVSHMEM_IBGDA_SUPPORT=1 \
NVSHMEM_PMIX_SUPPORT=0 \
NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \
NVSHMEM_USE_GDRCOPY=1 \
cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install

Nope.

Hi @sphish, The process works, but the performance does not seem to meet expectations.

env:

  1. H100 80GB HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC
  3. RoCE

rank0
NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py

rank1
NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with perftest? Is there any reference?

<!-- gh-comment-id:2702650130 --> @Baibaifan commented on GitHub (Mar 6, 2025): > > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > > > > ok, I will try it and does the cmake configuration need to be modified? [@sphish](https://github.com/sphish) > > > > > > ``` > > CUDA_HOME=/path/to/cuda \ > > GDRCOPY_HOME=/path/to/gdrcopy \ > > NVSHMEM_SHMEM_SUPPORT=0 \ > > NVSHMEM_UCX_SUPPORT=0 \ > > NVSHMEM_USE_NCCL=0 \ > > NVSHMEM_MPI_SUPPORT=0 \ > > NVSHMEM_IBGDA_SUPPORT=1 \ > > NVSHMEM_PMIX_SUPPORT=0 \ > > NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \ > > NVSHMEM_USE_GDRCOPY=1 \ > > cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install > > ``` > > Nope. Hi @sphish, The process works, but the performance does not seem to meet expectations. env: 1. H100 80GB HBM3 *8/HPC 2. 4 * CX7 NICs 400gb/s/HPC 3. RoCE rank0 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` rank1 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ` ``` [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) ``` The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with `perftest`? Is there any reference?
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?

Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.

sorry for that old logs. The newest logs are as below, with some my comment logs.

(base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py 
local_rank:5, ip:127.0.0.1 port:3004
world_size:8, rank:5
local_rank:4, ip:127.0.0.1 port:3004
world_size:8, rank:4
local_rank:6, ip:127.0.0.1 port:3004
world_size:8, rank:6
local_rank:7, ip:127.0.0.1 port:3004
world_size:8, rank:7
local_rank:0, ip:127.0.0.1 port:3004
world_size:8, rank:0
local_rank:1, ip:127.0.0.1 port:3004
world_size:8, rank:1
local_rank:2, ip:127.0.0.1 port:3004
world_size:8, rank:2
local_rank:3, ip:127.0.0.1 port:3004
world_size:8, rank:3
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setted...
rank:2, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:0, num_ranks:8
Allocating buffer size: 2116.2912 MB ...
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:1, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:5, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:4, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:7, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:3, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:6, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 

ibv_modify_qp failed 
ibv_modify_qp failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 
ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

transport create connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 


connect EPS failed 

connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 


nvshmem setup connections failed 

nvshmem setup connections failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 

connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed 

ep_connect failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed 

transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed 

nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem setup connections failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 
connect EPS failed 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem initialization failed, exiting 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 


W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM
W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。

<!-- gh-comment-id:2702690550 --> @kunfupanda-hw commented on GitHub (Mar 6, 2025): > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem? > > Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7. sorry for that old logs. The newest logs are as below, with some my comment logs. ``` (base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py local_rank:5, ip:127.0.0.1 port:3004 world_size:8, rank:5 local_rank:4, ip:127.0.0.1 port:3004 world_size:8, rank:4 local_rank:6, ip:127.0.0.1 port:3004 world_size:8, rank:6 local_rank:7, ip:127.0.0.1 port:3004 world_size:8, rank:7 local_rank:0, ip:127.0.0.1 port:3004 world_size:8, rank:0 local_rank:1, ip:127.0.0.1 port:3004 world_size:8, rank:1 local_rank:2, ip:127.0.0.1 port:3004 world_size:8, rank:2 local_rank:3, ip:127.0.0.1 port:3004 world_size:8, rank:3 setting.... setting.... setting.... setting.... setting.... setting.... setting.... setting.... setted... rank:2, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer setted... rank:0, num_ranks:8 Allocating buffer size: 2116.2912 MB ... before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer setted... rank:1, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer setted... rank:5, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer setted... rank:4, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer after cpp.Buffer setted... rank:7, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer setted... rank:3, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer after cpp.Buffer setted... rank:6, num_ranks:8 before init buffer buffer.__init__ before cpp.Buffer after cpp.Buffer finish all_gather object finish all_gather object finish all_gather object finish all_gather object finish all_gather object finish all_gather object finish all_gather object finish all_gather object before runtime.sync before runtime.sync before runtime.sync before runtime.sync before runtime.sync before runtime.sync before runtime.sync before runtime.sync /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed ibv_modify_qp failed ibv_modify_qp failed ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed ep_connect failed ep_connect failed ep_connect failed ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed transport create connect failed transport create connect failed transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed connect EPS failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed nvshmem setup connections failed nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed ep_connect failed ep_connect failed ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed ibv_modify_qp failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 ep_connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed ep_connect failed nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed transport create connect failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed nvshmem initialization failed, exiting /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting connect EPS failed connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem initialization failed, exiting nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed nvshmem setup connections failed /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting nvshmem initialization failed, exiting W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM Traceback (most recent call last): File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module> torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes while not context.join(): ^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join raise ProcessExitedException( torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255 ``` By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。
Author
Owner

@Baibaifan commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?

Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.

sorry for that old logs. The newest logs are as below, with some my comment logs.

(base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py 
local_rank:5, ip:127.0.0.1 port:3004
world_size:8, rank:5
local_rank:4, ip:127.0.0.1 port:3004
world_size:8, rank:4
local_rank:6, ip:127.0.0.1 port:3004
world_size:8, rank:6
local_rank:7, ip:127.0.0.1 port:3004
world_size:8, rank:7
local_rank:0, ip:127.0.0.1 port:3004
world_size:8, rank:0
local_rank:1, ip:127.0.0.1 port:3004
world_size:8, rank:1
local_rank:2, ip:127.0.0.1 port:3004
world_size:8, rank:2
local_rank:3, ip:127.0.0.1 port:3004
world_size:8, rank:3
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setted...
rank:2, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:0, num_ranks:8
Allocating buffer size: 2116.2912 MB ...
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:1, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:5, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:4, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:7, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:3, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:6, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 

ibv_modify_qp failed 
ibv_modify_qp failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 
ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

transport create connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 


connect EPS failed 

connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 


nvshmem setup connections failed 

nvshmem setup connections failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 

connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed 

ep_connect failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed 

transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed 

nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem setup connections failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 
connect EPS failed 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem initialization failed, exiting 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 


W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM
W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。

I also encountered this problem, but tests/test_internode.py can be run, but the performance is worse. Is it related to the fact that I have 4 NICs per machine? @sphish

<!-- gh-comment-id:2702902673 --> @Baibaifan commented on GitHub (Mar 6, 2025): > > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > > > > I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem? > > > > > > Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7. > > sorry for that old logs. The newest logs are as below, with some my comment logs. > > ``` > (base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py > local_rank:5, ip:127.0.0.1 port:3004 > world_size:8, rank:5 > local_rank:4, ip:127.0.0.1 port:3004 > world_size:8, rank:4 > local_rank:6, ip:127.0.0.1 port:3004 > world_size:8, rank:6 > local_rank:7, ip:127.0.0.1 port:3004 > world_size:8, rank:7 > local_rank:0, ip:127.0.0.1 port:3004 > world_size:8, rank:0 > local_rank:1, ip:127.0.0.1 port:3004 > world_size:8, rank:1 > local_rank:2, ip:127.0.0.1 port:3004 > world_size:8, rank:2 > local_rank:3, ip:127.0.0.1 port:3004 > world_size:8, rank:3 > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setted... > rank:2, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:0, num_ranks:8 > Allocating buffer size: 2116.2912 MB ... > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:1, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:5, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:4, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:7, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:3, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:6, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > ibv_modify_qp failed > > ibv_modify_qp failed > ibv_modify_qp failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > transport create connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > > > connect EPS failed > > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > > > nvshmem setup connections failed > > nvshmem setup connections failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed > ibv_modify_qp failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed > > ep_connect failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed > > transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed > > nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem setup connections failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > connect EPS failed > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem initialization failed, exiting > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > > nvshmem initialization failed, exiting > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > > > W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM > W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM > Traceback (most recent call last): > File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module> > torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn > return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes > while not context.join(): > ^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join > raise ProcessExitedException( > torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255 > ``` > > By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。 I also encountered this problem, but `tests/test_internode.py` can be run, but the performance is worse. Is it related to the fact that I have 4 NICs per machine? @sphish
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 6, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.

env:

  1. H100 80GB HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC
  3. RoCE

rank0 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py

rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with perftest? Is there any reference?

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?

<!-- gh-comment-id:2703243446 --> @kunfupanda-hw commented on GitHub (Mar 6, 2025): > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > env: > > 1. H100 80GB HBM3 *8/HPC > 2. 4 * CX7 NICs 400gb/s/HPC > 3. RoCE > > rank0 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` > > rank1 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ` > > ``` > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > ``` > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with `perftest`? Is there any reference? Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?
Author
Owner

@Baibaifan commented on GitHub (Mar 6, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:

  1. H100 80GB HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC
  3. RoCE

rank0 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with perftest? Is there any reference?

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.

<!-- gh-comment-id:2703724191 --> @Baibaifan commented on GitHub (Mar 6, 2025): > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > env: > > > > 1. H100 80GB HBM3 *8/HPC > > 2. 4 * CX7 NICs 400gb/s/HPC > > 3. RoCE > > > > rank0 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` > > rank1 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ` > > ``` > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > ``` > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with `perftest`? Is there any reference? > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP? MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.
Author
Owner

@sphish commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support我已经创建了一个新分支,更新了 NVSHMEM 到版本 3.2.5。然而,我没有 RoCE 环境进行验证。你能测试一下吗?@Baibaifan 分支:https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?我在一个 8 台 H100 集群节点( test_low_latency.py )上遇到了相同的问题,并将 NVSHMEM 更新到版本 3.2.5 并应用了最新的补丁。然而这并没有解决问题,日志依然相同,即 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed 。不过, ib_write_bw 命令我已经成功尝试过了。对于这个问题,有什么建议吗?

Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.您能提供 NVSHMEM 3.2.5 运行的日志吗?看来您仍在使用 NVSHMEM 3.1.7。

sorry for that old logs. The newest logs are as below, with some my comment logs.抱歉,旧的日志如下,以下是最新的日志,并附有一些我的注释。

(base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py 
local_rank:5, ip:127.0.0.1 port:3004
world_size:8, rank:5
local_rank:4, ip:127.0.0.1 port:3004
world_size:8, rank:4
local_rank:6, ip:127.0.0.1 port:3004
world_size:8, rank:6
local_rank:7, ip:127.0.0.1 port:3004
world_size:8, rank:7
local_rank:0, ip:127.0.0.1 port:3004
world_size:8, rank:0
local_rank:1, ip:127.0.0.1 port:3004
world_size:8, rank:1
local_rank:2, ip:127.0.0.1 port:3004
world_size:8, rank:2
local_rank:3, ip:127.0.0.1 port:3004
world_size:8, rank:3
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setted...
rank:2, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:0, num_ranks:8
Allocating buffer size: 2116.2912 MB ...
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:1, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:5, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:4, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:7, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:3, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:6, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 

ibv_modify_qp failed 
ibv_modify_qp failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 
ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

transport create connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 


connect EPS failed 

connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 


nvshmem setup connections failed 

nvshmem setup connections failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 

connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed 

ep_connect failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed 

transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed 

nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem setup connections failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 
connect EPS failed 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem initialization failed, exiting 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 


W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM
W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。通过查看日志,我们发现调用跟踪在 DeepEP 中为 test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) ,然后在 nvshmem_src_3.2.5-1 中为 nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); 。状态 110 通常为 ETIMEDOUT 。

Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log?

<!-- gh-comment-id:2703759332 --> @sphish commented on GitHub (Mar 6, 2025): > > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support我已经创建了一个新分支,更新了 NVSHMEM 到版本 3.2.5。然而,我没有 RoCE 环境进行验证。你能测试一下吗?@Baibaifan 分支:https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > > > > I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem?我在一个 8 台 H100 集群节点( `test_low_latency.py` )上遇到了相同的问题,并将 NVSHMEM 更新到版本 3.2.5 并应用了最新的补丁。然而这并没有解决问题,日志依然相同,即 `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed` 。不过, `ib_write_bw` 命令我已经成功尝试过了。对于这个问题,有什么建议吗? > > > > > > Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.您能提供 NVSHMEM 3.2.5 运行的日志吗?看来您仍在使用 NVSHMEM 3.1.7。 > > sorry for that old logs. The newest logs are as below, with some my comment logs.抱歉,旧的日志如下,以下是最新的日志,并附有一些我的注释。 > > ``` > (base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py > local_rank:5, ip:127.0.0.1 port:3004 > world_size:8, rank:5 > local_rank:4, ip:127.0.0.1 port:3004 > world_size:8, rank:4 > local_rank:6, ip:127.0.0.1 port:3004 > world_size:8, rank:6 > local_rank:7, ip:127.0.0.1 port:3004 > world_size:8, rank:7 > local_rank:0, ip:127.0.0.1 port:3004 > world_size:8, rank:0 > local_rank:1, ip:127.0.0.1 port:3004 > world_size:8, rank:1 > local_rank:2, ip:127.0.0.1 port:3004 > world_size:8, rank:2 > local_rank:3, ip:127.0.0.1 port:3004 > world_size:8, rank:3 > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setted... > rank:2, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:0, num_ranks:8 > Allocating buffer size: 2116.2912 MB ... > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:1, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:5, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:4, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:7, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:3, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:6, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > ibv_modify_qp failed > > ibv_modify_qp failed > ibv_modify_qp failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > transport create connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > > > connect EPS failed > > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > > > nvshmem setup connections failed > > nvshmem setup connections failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed > ibv_modify_qp failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed > > ep_connect failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed > > transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed > > nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem setup connections failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > connect EPS failed > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem initialization failed, exiting > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > > nvshmem initialization failed, exiting > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > > > W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM > W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM > Traceback (most recent call last): > File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module> > torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn > return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes > while not context.join(): > ^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join > raise ProcessExitedException( > torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255 > ``` > > By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。通过查看日志,我们发现调用跟踪在 DeepEP 中为 `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` ,然后在 nvshmem_src_3.2.5-1 中为 `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` 。状态 `110` 通常为 `ETIMEDOUT` 。 Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log?
Author
Owner

@sphish commented on GitHub (Mar 6, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support我已经创建了一个新分支,更新了 NVSHMEM 到版本 3.2.5。然而,我没有 RoCE 环境进行验证。你能测试一下吗?@Baibaifan 分支:https://github.com/deepseek-ai/DeepEP/tree/roce-support

ok, I will try it and does the cmake configuration need to be modified? @sphish好的,我试试看,cmake 配置需要修改吗?@sphish

CUDA_HOME=/path/to/cuda \
GDRCOPY_HOME=/path/to/gdrcopy \
NVSHMEM_SHMEM_SUPPORT=0 \
NVSHMEM_UCX_SUPPORT=0 \
NVSHMEM_USE_NCCL=0 \
NVSHMEM_MPI_SUPPORT=0 \
NVSHMEM_IBGDA_SUPPORT=1 \
NVSHMEM_PMIX_SUPPORT=0 \
NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \
NVSHMEM_USE_GDRCOPY=1 \
cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install

Nope.  不行。

Hi @sphish, The process works, but the performance does not seem to meet expectations.Hi,过程正常,但性能似乎未达到预期。

env:  环境:

  1. H100 80GB HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC
  3. RoCE

rank0 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py

rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with perftest? Is there any reference?以上速度与官方数据之间的差异大于网卡之间的差异。 perftest 如何测试性能?有没有参考?

We haven't tested on a machine with 4 nics, but I don't think the performance should be this low. Could you try running alltoall_perf from NCCL_tests?

<!-- gh-comment-id:2703780718 --> @sphish commented on GitHub (Mar 6, 2025): > > > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support我已经创建了一个新分支,更新了 NVSHMEM 到版本 3.2.5。然而,我没有 RoCE 环境进行验证。你能测试一下吗?@Baibaifan 分支:https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > > > > > > > ok, I will try it and does the cmake configuration need to be modified? [@sphish](https://github.com/sphish)好的,我试试看,cmake 配置需要修改吗?@sphish > > > > > > > > > ``` > > > CUDA_HOME=/path/to/cuda \ > > > GDRCOPY_HOME=/path/to/gdrcopy \ > > > NVSHMEM_SHMEM_SUPPORT=0 \ > > > NVSHMEM_UCX_SUPPORT=0 \ > > > NVSHMEM_USE_NCCL=0 \ > > > NVSHMEM_MPI_SUPPORT=0 \ > > > NVSHMEM_IBGDA_SUPPORT=1 \ > > > NVSHMEM_PMIX_SUPPORT=0 \ > > > NVSHMEM_TIMEOUT_DEVICE_POLLING=0 \ > > > NVSHMEM_USE_GDRCOPY=1 \ > > > cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX=/path/to/your/dir/to/install > > > ``` > > > > > > Nope.  不行。 > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations.Hi,过程正常,但性能似乎未达到预期。 > > env:  环境: > > 1. H100 80GB HBM3 *8/HPC > 2. 4 * CX7 NICs 400gb/s/HPC > 3. RoCE > > rank0 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` > > rank1 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ` > > ``` > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > ``` > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with `perftest`? Is there any reference?以上速度与官方数据之间的差异大于网卡之间的差异。 `perftest` 如何测试性能?有没有参考? We haven't tested on a machine with 4 nics, but I don't think the performance should be this low. Could you try running alltoall_perf from NCCL_tests?
Author
Owner

@Baibaifan commented on GitHub (Mar 7, 2025):

NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py

Image
After modifying the wrong OOB configuration, the current speed of the 4 network NICs is:

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 24, RDMA chunk 32: 41.14 GB/s (RDMA), 134.29 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 8, RDMA chunk 28: 45.36 GB/s (RDMA), 148.06 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 12: 45.20 GB/s (RDMA), 147.55 GB/s (NVL)

Is this reasonable, since I have 4 network NICs? @sphish

<!-- gh-comment-id:2705481556 --> @Baibaifan commented on GitHub (Mar 7, 2025): > NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py ![Image](https://github.com/user-attachments/assets/c2c228b8-8f5b-4b1a-8843-d241823c9f90) After modifying the wrong `OOB` configuration, the current speed of the 4 network NICs is: ``` [tuning] Best dispatch (FP8): SMs 24, NVL chunk 24, RDMA chunk 32: 41.14 GB/s (RDMA), 134.29 GB/s (NVL) [tuning] Best dispatch (BF16): SMs 24, NVL chunk 8, RDMA chunk 28: 45.36 GB/s (RDMA), 148.06 GB/s (NVL) [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 12: 45.20 GB/s (RDMA), 147.55 GB/s (NVL) ``` Is this reasonable, since I have 4 network NICs? @sphish
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 7, 2025):

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。通过查看日志,我们发现调用跟踪在 DeepEP 中为 test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) ,然后在 nvshmem_src_3.2.5-1 中为 nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); 。状态 110 通常为 ETIMEDOUT 。

Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log?

Hi, @sphish,

In my setting, I run test_internode.py on two nodes and test_intranode.py on one node successfully, but test_low_latency.py still cannot pass with ibv_modfiy_qp failed. Then I run perftest cmd and get some observations:

  • TCP based QP connection is always failed for different indexed CX cards with RTR status, e.g., mlx5_0 to mlx5_1, while succeed for same indexed CX cards, e.g., mlx5_0 to mlx5_0.
  • CM based QP connection always succeed and perftest cmd pass.

And I also set environment variable NVSHMEM_DEBUG=TRACE, and run it. Please see the part of logs as below. The logs show that the nvshmem driver tries to build EP connection with mutiple times, and finally failed.

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3867 Begin - Ordered list of devices for assignment (after processing user provdied env vars (if any))  - 

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=0 (of 9), device id=0, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=1 (of 9), device id=1, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=2 (of 9), device id=2, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=3 (of 9), device id=3, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=4 (of 9), device id=5, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=5 (of 9), device id=6, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=6 (of 9), device id=7, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=7 (of 9), device id=8, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=8 (of 9), device id=9, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3880 End - Ordered list of devices for assignment (after processing user provdied env vars (if any))

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3905 NIC buffer will be on GPU memory.

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3916 NIC handler will be GPU.

/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 32
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 2 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 1 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 6 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 5 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 0 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 7 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 4 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 16 - DONE
glusterfs-06:1692:1692 [0] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 0
glusterfs-06:1697:1697 [5] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 6
glusterfs-06:1693:1693 [1] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 1
glusterfs-06:1696:1696 [4] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 5
glusterfs-06:1698:1698 [6] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 7
glusterfs-06:1694:1694 [2] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 2
glusterfs-06:1699:1699 [7] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 8
glusterfs-06:1695:1695 [3] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 4
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 6 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 0 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 5 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 1 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 4 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 2 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 7 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 3 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 5 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 6 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 4 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 3 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 2 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 1 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 0 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 7 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 

/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 
ep_connect failed 
ibv_modify_qp failed 

/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
ep_connect failed 
ibv_modify_qp failed 
ep_connect failed 
transport create connect failed 
ep_connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 transport create connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

transport create connect failed 
connect EPS failed 

transport create connect failed 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 

/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 connect EPS failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
transport create connect failed 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 
transport create connect failed 

nvshmem setup connections failed 
connect EPS failed 
connect EPS failed 

/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 connect EPS failed 
connect EPS failed 
nvshmem initialization failed, exiting 
connect EPS failed 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 

nvshmem initialization failed, exiting 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem setup connections failed 
nvshmem setup connections failed 
nvshmem setup connections failed 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 

/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 

W0307 15:04:39.317000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1692 via signal SIGTERM
W0307 15:04:39.318000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1693 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1694 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1695 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1696 via signal SIGTERM
W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1697 via signal SIGTERM
W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1699 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-roce-support/tests/test_low_latency.py", line 160, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 6 terminated with exit code 255
<!-- gh-comment-id:2706328170 --> @kunfupanda-hw commented on GitHub (Mar 7, 2025): > > By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。通过查看日志,我们发现调用跟踪在 DeepEP 中为 `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` ,然后在 nvshmem_src_3.2.5-1 中为 `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` 。状态 `110` 通常为 `ETIMEDOUT` 。 > > Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log? Hi, @sphish, In my setting, I run `test_internode.py` on two nodes and `test_intranode.py` on one node successfully, but `test_low_latency.py` still cannot pass with `ibv_modfiy_qp` failed. Then I run `perftest` cmd and get some observations: - TCP based QP connection is always failed for different indexed CX cards with `RTR` status, e.g., `mlx5_0` to `mlx5_1`, while succeed for same indexed CX cards, e.g., `mlx5_0` to `mlx5_0`. - CM based QP connection always succeed and `perftest` cmd pass. And I also set environment variable NVSHMEM_DEBUG=TRACE, and run it. Please see the part of logs as below. The logs show that the nvshmem driver tries to build EP connection with mutiple times, and finally failed. ``` /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3867 Begin - Ordered list of devices for assignment (after processing user provdied env vars (if any)) - /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=0 (of 9), device id=0, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=1 (of 9), device id=1, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=2 (of 9), device id=2, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=3 (of 9), device id=3, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=4 (of 9), device id=5, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=5 (of 9), device id=6, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=6 (of 9), device id=7, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=7 (of 9), device id=8, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=8 (of 9), device id=9, port_num=1 /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3880 End - Ordered list of devices for assignment (after processing user provdied env vars (if any)) /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3905 NIC buffer will be on GPU memory. /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3916 NIC handler will be GPU. /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 32 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 2 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 1 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 32 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 6 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 5 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 0 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 7 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 4 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 16 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 16 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 16 - DONE glusterfs-06:1692:1692 [0] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 0 glusterfs-06:1697:1697 [5] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 6 glusterfs-06:1693:1693 [1] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 1 glusterfs-06:1696:1696 [4] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 5 glusterfs-06:1698:1698 [6] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 7 glusterfs-06:1694:1694 [2] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 2 glusterfs-06:1699:1699 [7] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 8 glusterfs-06:1695:1695 [3] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 4 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 6 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 0 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 5 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 1 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 4 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 2 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 7 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 3 nranks 8 size 48 /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 5 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 6 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 4 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 3 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 2 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 1 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 0 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 7 nranks 8 size 48 - DONE /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed ibv_modify_qp failed ep_connect failed ibv_modify_qp failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed ibv_modify_qp failed ep_connect failed ibv_modify_qp failed ep_connect failed transport create connect failed ep_connect failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 transport create connect failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed ep_connect failed ep_connect failed transport create connect failed connect EPS failed transport create connect failed /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 connect EPS failed /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed transport create connect failed /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed transport create connect failed nvshmem setup connections failed connect EPS failed connect EPS failed /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 connect EPS failed connect EPS failed nvshmem initialization failed, exiting connect EPS failed nvshmem setup connections failed /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem setup connections failed /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting nvshmem initialization failed, exiting /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem setup connections failed nvshmem setup connections failed nvshmem setup connections failed nvshmem initialization failed, exiting nvshmem initialization failed, exiting /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting nvshmem initialization failed, exiting nvshmem initialization failed, exiting W0307 15:04:39.317000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1692 via signal SIGTERM W0307 15:04:39.318000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1693 via signal SIGTERM W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1694 via signal SIGTERM W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1695 via signal SIGTERM W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1696 via signal SIGTERM W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1697 via signal SIGTERM W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1699 via signal SIGTERM Traceback (most recent call last): File "/work/DeepEP-roce-support/tests/test_low_latency.py", line 160, in <module> torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes while not context.join(): ^^^^^^^^^^^^^^ File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join raise ProcessExitedException( torch.multiprocessing.spawn.ProcessExitedException: process 6 terminated with exit code 255 ```
Author
Owner

@sphish commented on GitHub (Mar 9, 2025):

NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py

Image After modifying the wrong OOB configuration, the current speed of the 4 network NICs is:

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 24, RDMA chunk 32: 41.14 GB/s (RDMA), 134.29 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 8, RDMA chunk 28: 45.36 GB/s (RDMA), 148.06 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 12: 45.20 GB/s (RDMA), 147.55 GB/s (NVL)

Is this reasonable, since I have 4 network NICs? @sphish

@Baibaifan What is OOB configuration? Regarding the performance issue, I agree. It appears that the bandwidth is limited by the NICs.

<!-- gh-comment-id:2708632997 --> @sphish commented on GitHub (Mar 9, 2025): > > NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py > > ![Image](https://github.com/user-attachments/assets/c2c228b8-8f5b-4b1a-8843-d241823c9f90) After modifying the wrong `OOB` configuration, the current speed of the 4 network NICs is: > > ``` > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 24, RDMA chunk 32: 41.14 GB/s (RDMA), 134.29 GB/s (NVL) > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 8, RDMA chunk 28: 45.36 GB/s (RDMA), 148.06 GB/s (NVL) > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 12: 45.20 GB/s (RDMA), 147.55 GB/s (NVL) > ``` > > Is this reasonable, since I have 4 network NICs? [@sphish](https://github.com/sphish) @Baibaifan What is `OOB` configuration? Regarding the performance issue, I agree. It appears that the bandwidth is limited by the NICs.
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

perftest

Could you please send me the command to run perftest for reference? @kunfupanda-hw

<!-- gh-comment-id:2709267987 --> @Baibaifan commented on GitHub (Mar 10, 2025): > perftest Could you please send me the command to run `perftest` for reference? @kunfupanda-hw
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

@Baibaifan What is OOB configuration? Regarding the performance issue, I agree. It appears that the bandwidth is limited by the NICs.

OOB configuration is NCCL_SOCKET_IFNAME, there was something wrong with the previous test setup. I was doing test_low_latency.py test and encountered the same problem as @kunfupanda-hw. @sphish

<!-- gh-comment-id:2709288574 --> @Baibaifan commented on GitHub (Mar 10, 2025): > > > > [@Baibaifan](https://github.com/Baibaifan) What is `OOB` configuration? Regarding the performance issue, I agree. It appears that the bandwidth is limited by the NICs. > > > > > > > > > `OOB` configuration is `NCCL_SOCKET_IFNAME`, there was something wrong with the previous test setup. I was doing `test_low_latency.py` test and encountered the same problem as [@kunfupanda-hw](https://github.com/kunfupanda-hw). @sphish
Author
Owner

@MinhuiWan commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py``NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.

<!-- gh-comment-id:2709296787 --> @MinhuiWan commented on GitHub (Mar 10, 2025): > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > > env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。 > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC > > > 3. RoCE > > > > > > rank0 > > > rank1 `NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py``NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ` > > > ``` > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest` > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP? > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。 Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 10, 2025):

perftest

Could you please send me the command to run perftest for reference? @kunfupanda-hw

server: ib_write_bw -d your_card_name -a --report_gbits -n 1000 -q 16 --CPU-freq -p 1
client: ib_write_bw -d your_card_name -a --report_gbits -n 1000 -q 16 your_ip --CPU-freq -p 1

<!-- gh-comment-id:2709302040 --> @kunfupanda-hw commented on GitHub (Mar 10, 2025): > > perftest > > Could you please send me the command to run `perftest` for reference? [@kunfupanda-hw](https://github.com/kunfupanda-hw) server: ib_write_bw -d your_card_name -a --report_gbits -n 1000 -q 16 --CPU-freq -p 1 client: ib_write_bw -d your_card_name -a --report_gbits -n 1000 -q 16 your_ip --CPU-freq -p 1
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

ib_write_bw

I mean the tests in perftest/perftest_install, in the nvshmem_src directory. @kunfupanda-hw

<!-- gh-comment-id:2709316376 --> @Baibaifan commented on GitHub (Mar 10, 2025): > ib_write_bw I mean the tests in `perftest/perftest_install`, in the `nvshmem_src` directory. @kunfupanda-hw
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. @MinhuiWan

<!-- gh-comment-id:2709318315 --> @Baibaifan commented on GitHub (Mar 10, 2025): > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC > > > > 3. RoCE > > > > > > > > rank0 > > > > rank1 `` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py``NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py `` > > > > ``` > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest` > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP? > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。 > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data. Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. @MinhuiWan
Author
Owner

@sphish commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.Hi @sphish, 进程正常运行,但性能似乎未达到预期。
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpcH100 80GB HBM3 *8/HPC H100 80GB HBM3 *8/ HPC
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC4 * CX7 NICs 400gb/s/HPC4 * CX7 网卡 400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗? perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?嗨,@百百范,rank0/1 的 MASTER_ADDR 是一样的吗?是 CX7 卡的 IP 还是主机 IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。master_addr 是一样的,都是主机 ip。它是用来构建 Bootstrap 的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.你好 @Baibaifan 你更改了什么配置?我这里有 4 个 IB 每节点,自测数据(4.47GB/s RDMA)和官方数据之间也有很大的差异。

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. 请检查 nccl 网络配置。例如: NCCL_IB_HCA 和 NCCL_SOCKET_IFNAME 。@MinhuiWan

@Baibaifan If you are looking for some performance references for nvshmem perftest, there are some official P2P benchmark results in this link. As for collective communication, we haven't tested it either.

<!-- gh-comment-id:2709338918 --> @sphish commented on GitHub (Mar 10, 2025): > > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations.Hi @sphish, 进程正常运行,但性能似乎未达到预期。 > > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpcH100 80GB HBM3 *8/HPC H100 80GB HBM3 *8/ HPC > > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC4 * CX7 NICs 400gb/s/HPC4 * CX7 网卡 400gb/s/HPC > > > > > 3. RoCE > > > > > > > > > > rank0 > > > > > rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py`NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py > > > > > ``` > > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest`以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗? `perftest` > > > > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?嗨,@百百范,rank0/1 的 MASTER_ADDR 是一样的吗?是 CX7 卡的 IP 还是主机 IP? > > > > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。master_addr 是一样的,都是主机 ip。它是用来构建 Bootstrap 的。 > > > > > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.你好 @Baibaifan 你更改了什么配置?我这里有 4 个 IB 每节点,自测数据(4.47GB/s RDMA)和官方数据之间也有很大的差异。 > > Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. 请检查 nccl 网络配置。例如: `NCCL_IB_HCA` 和 `NCCL_SOCKET_IFNAME` 。[@MinhuiWan](https://github.com/MinhuiWan) @Baibaifan If you are looking for some performance references for nvshmem perftest, there are some official P2P benchmark results in this [link](https://static.rainfocus.com/nvidia/gtcs24/sess/1693876934119001DqDe/FinalPresPDF/S61368_1710778532525001A5Z4.pdf). As for collective communication, we haven't tested it either.
Author
Owner

@sphish commented on GitHub (Mar 10, 2025):

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。通过查看日志,我们发现调用跟踪在 DeepEP 中为 test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) ,然后在 nvshmem_src_3.2.5-1 中为 nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); 。状态 110 通常为 ETIMEDOUT 。

Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log?

Hi, @sphish,

In my setting, I run test_internode.py on two nodes and test_intranode.py on one node successfully, but test_low_latency.py still cannot pass with ibv_modfiy_qp failed. Then I run perftest cmd and get some observations:

  • TCP based QP connection is always failed for different indexed CX cards with RTR status, e.g., mlx5_0 to mlx5_1, while succeed for same indexed CX cards, e.g., mlx5_0 to mlx5_0.
  • CM based QP connection always succeed and perftest cmd pass.

And I also set environment variable NVSHMEM_DEBUG=TRACE, and run it. Please see the part of logs as below. The logs show that the nvshmem driver tries to build EP connection with mutiple times, and finally failed.

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3867 Begin - Ordered list of devices for assignment (after processing user provdied env vars (if any))  - 

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=0 (of 9), device id=0, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=1 (of 9), device id=1, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=2 (of 9), device id=2, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=3 (of 9), device id=3, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=4 (of 9), device id=5, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=5 (of 9), device id=6, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=6 (of 9), device id=7, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=7 (of 9), device id=8, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=8 (of 9), device id=9, port_num=1

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3880 End - Ordered list of devices for assignment (after processing user provdied env vars (if any))

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3905 NIC buffer will be on GPU memory.

/work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3916 NIC handler will be GPU.

/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 32
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 2 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 1 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 32 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 6 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 5 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 0 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 7 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 4 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 16
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 16 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 16 - DONE
glusterfs-06:1692:1692 [0] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 0
glusterfs-06:1697:1697 [5] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 6
glusterfs-06:1693:1693 [1] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 1
glusterfs-06:1696:1696 [4] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 5
glusterfs-06:1698:1698 [6] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 7
glusterfs-06:1694:1694 [2] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 2
glusterfs-06:1699:1699 [7] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 8
glusterfs-06:1695:1695 [3] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 4
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 6 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 0 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 5 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 1 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 4 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 2 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 7 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 3 nranks 8 size 48
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 5 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 6 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 4 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 3 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 2 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 1 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 0 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 7 nranks 8 size 48 - DONE
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 

/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 
ep_connect failed 
ibv_modify_qp failed 

/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
ep_connect failed 
ibv_modify_qp failed 
ep_connect failed 
transport create connect failed 
ep_connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 transport create connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

transport create connect failed 
connect EPS failed 

transport create connect failed 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 

/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 connect EPS failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
transport create connect failed 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 
transport create connect failed 

nvshmem setup connections failed 
connect EPS failed 
connect EPS failed 

/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 connect EPS failed 
connect EPS failed 
nvshmem initialization failed, exiting 
connect EPS failed 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem setup connections failed 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 

nvshmem initialization failed, exiting 
/work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem setup connections failed 
nvshmem setup connections failed 
nvshmem setup connections failed 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 

/work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 

W0307 15:04:39.317000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1692 via signal SIGTERM
W0307 15:04:39.318000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1693 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1694 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1695 via signal SIGTERM
W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1696 via signal SIGTERM
W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1697 via signal SIGTERM
W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1699 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-roce-support/tests/test_low_latency.py", line 160, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 6 terminated with exit code 255

@kunfupanda-hw I'm sorry, I don't have any ideas. Are you using a RoCE network? You can try running the shmem_put_bw in nvshmem. If that doesn't work, it might be an issue with your IP configuration.

<!-- gh-comment-id:2709349770 --> @sphish commented on GitHub (Mar 10, 2025): > > > By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。通过查看日志,我们发现调用跟踪在 DeepEP 中为 `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` ,然后在 nvshmem_src_3.2.5-1 中为 `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` 。状态 `110` 通常为 `ETIMEDOUT` 。 > > > > > > Could you add the environment variable NVSHMEM_DEBUG=TRACE, run it again, and provide the log? > > Hi, [@sphish](https://github.com/sphish), > > In my setting, I run `test_internode.py` on two nodes and `test_intranode.py` on one node successfully, but `test_low_latency.py` still cannot pass with `ibv_modfiy_qp` failed. Then I run `perftest` cmd and get some observations: > > * TCP based QP connection is always failed for different indexed CX cards with `RTR` status, e.g., `mlx5_0` to `mlx5_1`, while succeed for same indexed CX cards, e.g., `mlx5_0` to `mlx5_0`. > * CM based QP connection always succeed and `perftest` cmd pass. > > And I also set environment variable NVSHMEM_DEBUG=TRACE, and run it. Please see the part of logs as below. The logs show that the nvshmem driver tries to build EP connection with mutiple times, and finally failed. > > ``` > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3867 Begin - Ordered list of devices for assignment (after processing user provdied env vars (if any)) - > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=0 (of 9), device id=0, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=1 (of 9), device id=1, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=2 (of 9), device id=2, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=3 (of 9), device id=3, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=4 (of 9), device id=5, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=5 (of 9), device id=6, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=6 (of 9), device id=7, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=7 (of 9), device id=8, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3871 Ordered list of devices for assignment - idx=8 (of 9), device id=9, port_num=1 > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3880 End - Ordered list of devices for assignment (after processing user provdied env vars (if any)) > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3905 NIC buffer will be on GPU memory. > > /work/nvshmem_src/src/modules/transport/ibgda/ibgda.cpp 3916 NIC handler will be GPU. > > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 32 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 2 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 1 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 32 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 6 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 5 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 0 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 7 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 4 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:480: rank 3 nranks 8 size 16 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 2 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 1 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 6 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 0 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 5 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 7 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 4 nranks 8 size 16 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_allgather:503: rank 3 nranks 8 size 16 - DONE > glusterfs-06:1692:1692 [0] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 0 > glusterfs-06:1697:1697 [5] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 6 > glusterfs-06:1693:1693 [1] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 1 > glusterfs-06:1696:1696 [4] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 5 > glusterfs-06:1698:1698 [6] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 7 > glusterfs-06:1694:1694 [2] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 2 > glusterfs-06:1699:1699 [7] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 8 > glusterfs-06:1695:1695 [3] NVSHMEM INFO NVSHMEM_ENABLE_NIC_PE_MAPPING = 0, device 0 setting dev_id = 4 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 6 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 0 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 5 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 1 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 4 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 2 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 7 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:516: rank 3 nranks 8 size 48 > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 5 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 6 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 4 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 3 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 2 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 1 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 0 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_alltoall:546: rank 7 nranks 8 size 48 - DONE > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 > /work/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > ibv_modify_qp failed > ep_connect failed > ibv_modify_qp failed > > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed > ibv_modify_qp failed > ep_connect failed > ibv_modify_qp failed > ep_connect failed > transport create connect failed > ep_connect failed > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 transport create connect failed > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > transport create connect failed > connect EPS failed > > transport create connect failed > /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > > /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 connect EPS failed > /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > transport create connect failed > /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed > transport create connect failed > > nvshmem setup connections failed > connect EPS failed > connect EPS failed > > /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 connect EPS failed > connect EPS failed > nvshmem initialization failed, exiting > connect EPS failed > nvshmem setup connections failed > /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem setup connections failed > /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > > nvshmem initialization failed, exiting > > nvshmem initialization failed, exiting > /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem setup connections failed > nvshmem setup connections failed > nvshmem setup connections failed > nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > > /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > > W0307 15:04:39.317000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1692 via signal SIGTERM > W0307 15:04:39.318000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1693 via signal SIGTERM > W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1694 via signal SIGTERM > W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1695 via signal SIGTERM > W0307 15:04:39.319000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1696 via signal SIGTERM > W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1697 via signal SIGTERM > W0307 15:04:39.320000 1627 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 1699 via signal SIGTERM > Traceback (most recent call last): > File "/work/DeepEP-roce-support/tests/test_low_latency.py", line 160, in <module> > torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn > return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes > while not context.join(): > ^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join > raise ProcessExitedException( > torch.multiprocessing.spawn.ProcessExitedException: process 6 terminated with exit code 255 > ``` @kunfupanda-hw I'm sorry, I don't have any ideas. Are you using a RoCE network? You can try running the shmem_put_bw in nvshmem. If that doesn't work, it might be an issue with your IP configuration.
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. @MinhuiWan

Hi @sphish, The process works, but the performance does not seem to meet expectations.Hi @sphish, 进程正常运行,但性能似乎未达到预期。
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpcH100 80GB HBM3 *8/HPC H100 80GB HBM3 *8/ HPC
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC4 * CX7 NICs 400gb/s/HPC4 * CX7 网卡 400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗? perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?嗨,@百百范,rank0/1 的 MASTER_ADDR 是一样的吗?是 CX7 卡的 IP 还是主机 IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。master_addr 是一样的,都是主机 ip。它是用来构建 Bootstrap 的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.你好 @Baibaifan 你更改了什么配置?我这里有 4 个 IB 每节点,自测数据(4.47GB/s RDMA)和官方数据之间也有很大的差异。

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. 请检查 nccl 网络配置。例如: NCCL_IB_HCA 和 NCCL_SOCKET_IFNAME 。@MinhuiWan

@Baibaifan If you are looking for some performance references for nvshmem perftest, there are some official P2P benchmark results in this link. As for collective communication, we haven't tested it either.

I am using RoCE with 4NICs. I have a problem with running test_low_latency.py. I want to use perftest/perftest_install in the nvshmem_src directory, for example, shmem_put_bw. I want to refer to the following process to see how to use perftest. @sphish

<!-- gh-comment-id:2709359660 --> @Baibaifan commented on GitHub (Mar 10, 2025): > > > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpc > > > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC > > > > > > 3. RoCE > > > > > > > > > > > > rank0 > > > > > > rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py`NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py `` > > > > > > ``` > > > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest` > > > > > > > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP? > > > > > > > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。 > > > > > > > > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data. > > > > > > Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. [@MinhuiWan](https://github.com/MinhuiWan) > > > > > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations.Hi [@sphish](https://github.com/sphish), 进程正常运行,但性能似乎未达到预期。 > > > > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpcH100 80GB HBM3 *8/HPC H100 80GB HBM3 *8/ HPC > > > > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC4 * CX7 NICs 400gb/s/HPC4 * CX7 网卡 400gb/s/HPC > > > > > > > 3. RoCE > > > > > > > > > > > > > > rank0 > > > > > > > rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py`NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py > > > > > > > ``` > > > > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest`以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗? `perftest` > > > > > > > > > > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?嗨,@百百范,rank0/1 的 MASTER_ADDR 是一样的吗?是 CX7 卡的 IP 还是主机 IP? > > > > > > > > > > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。master_addr 是一样的,都是主机 ip。它是用来构建 Bootstrap 的。 > > > > > > > > > > > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.你好 [@Baibaifan](https://github.com/Baibaifan) 你更改了什么配置?我这里有 4 个 IB 每节点,自测数据(4.47GB/s RDMA)和官方数据之间也有很大的差异。 > > > > > > > > > Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. 请检查 nccl 网络配置。例如: `NCCL_IB_HCA` 和 `NCCL_SOCKET_IFNAME` 。[@MinhuiWan](https://github.com/MinhuiWan) > > > > > > [@Baibaifan](https://github.com/Baibaifan) If you are looking for some performance references for nvshmem perftest, there are some official P2P benchmark results in this [link](https://static.rainfocus.com/nvidia/gtcs24/sess/1693876934119001DqDe/FinalPresPDF/S61368_1710778532525001A5Z4.pdf). As for collective communication, we haven't tested it either. > > I am using RoCE with 4NICs. I have a problem with running `test_low_latency.py`. I want to use `perftest/perftest_install` in the nvshmem_src directory, for example, `shmem_put_bw`. I want to refer to the following process to see how to use perftest. @sphish
Author
Owner

@MinhuiWan commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpch10080gb HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. @MinhuiWan

thanks for your reply @Baibaifan. I will set NCCL_IB_HCA and NCCL_SOCKET_IFNAME to test. But i have a question: DeepEP does not rely on NCCL, so why can NCCL environment variables be set to control it?

<!-- gh-comment-id:2709415996 --> @MinhuiWan commented on GitHub (Mar 10, 2025): > > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpch10080gb HBM3 *8/HPC > > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC > > > > > 3. RoCE > > > > > > > > > > rank0 > > > > > rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py`NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py `` > > > > > ``` > > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest` > > > > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP? > > > > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。 > > > > > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data. > > Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. [@MinhuiWan](https://github.com/MinhuiWan) thanks for your reply @Baibaifan. I will set NCCL_IB_HCA and NCCL_SOCKET_IFNAME to test. But i have a question: DeepEP does not rely on NCCL, so why can NCCL environment variables be set to control it?
Author
Owner

@Baibaifan commented on GitHub (Mar 10, 2025):

Hi @sphish, The process works, but the performance does not seem to meet expectations.
env:嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。嗨@sphish,这个过程是有效的,但性能似乎没有达到预期。

  1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpch10080gb HBM3 *8/HPC
  2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC
  3. RoCE

rank0
rank1 NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.pyNCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py ``

[tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL)
[tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL)
[tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL)

The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?perftest

Hi, @Baibaifan, are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP?

MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。

Hi @Baibaifan what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data.

Please check the nccl network configuration. For example: NCCL_IB_HCA and NCCL_SOCKET_IFNAME. @MinhuiWan

thanks for your reply @Baibaifan. I will set NCCL_IB_HCA and NCCL_SOCKET_IFNAME to test. But i have a question: DeepEP does not rely on NCCL, so why can NCCL environment variables be set to control it?

The unit test used nccl to create a communication group, and I found that there was a problem with my previous settings. @MinhuiWan

<!-- gh-comment-id:2709444345 --> @Baibaifan commented on GitHub (Mar 10, 2025): > > > > > > Hi [@sphish](https://github.com/sphish), The process works, but the performance does not seem to meet expectations. > > > > > > env:嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。嗨[@sphish](https://github.com/sphish),这个过程是有效的,但性能似乎没有达到预期。 > > > > > > > > > > > > 1. H100 80GB HBM3 *8/HPC h10080gb hbm3 *8/ hpch10080gb HBM3 *8/HPC > > > > > > 2. 4 * CX7 NICs 400gb/s/HPC4 * CX7网卡400gb/s/HPC > > > > > > 3. RoCE > > > > > > > > > > > > rank0 > > > > > > rank1 ` NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=0 python tests/test_internode.py`NCCL_DEBUG=INFO MASTER_ADDR=xxx WORLD_SIZE=2 RANK=1 python tests/test_internode.py `` > > > > > > ``` > > > > > > [tuning] Best dispatch (FP8): SMs 24, NVL chunk 28, RDMA chunk 8: 4.09 GB/s (RDMA), 13.36 GB/s (NVL) > > > > > > [tuning] Best dispatch (BF16): SMs 24, NVL chunk 28, RDMA chunk 32: 4.57 GB/s (RDMA), 14.91 GB/s (NVL) > > > > > > [tuning] Best combine: SMs 24, NVL chunk 3, RDMA chunk 32: 2.97 GB/s (RDMA), 9.69 GB/s (NVL) > > > > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between the above speed and the official data is greater than the difference between the network cards. How can I test the performance with ? Is there any reference?以上速度与官方数据的差异大于网卡之间的差异。如何测试性能?有参考吗?`perftest` > > > > > > > > > > > > > > > Hi, [@Baibaifan](https://github.com/Baibaifan), are MASTER_ADDRs of rank0/1 same? Are they IP of CX7 cards or host IP?嗨,@百百范,排名0/1的master_addr是一样的吗?是CX7卡的IP还是主机IP? > > > > > > > > > > > > MASTER_ADDRs are the same, both are host ip. It is to build Bootstrap use.master_addr是一样的,都是主机ip。它是用来构建Bootstrap的。 > > > > > > > > > Hi [@Baibaifan](https://github.com/Baibaifan) what's configuration have you changed, i have 4 IB per node, there is also the large difference between self-testing data (4.47GB/s RDMA) and offical data. > > > > > > Please check the nccl network configuration. For example: `NCCL_IB_HCA` and `NCCL_SOCKET_IFNAME`. [@MinhuiWan](https://github.com/MinhuiWan) > > thanks for your reply [@Baibaifan](https://github.com/Baibaifan). I will set NCCL_IB_HCA and NCCL_SOCKET_IFNAME to test. But i have a question: DeepEP does not rely on NCCL, so why can NCCL environment variables be set to control it? The unit test used nccl to create a communication group, and I found that there was a problem with my previous settings. @MinhuiWan
Author
Owner

@MinhuiWan commented on GitHub (Mar 10, 2025):

@Baibaifan I want use IB to test. My environment is 2 nodes,8 H100 GPUs, 4 IB per node, 1 ethernet per node。Do you test with roce by ethernet? Now I set env:
export NVSHMEM_ENABLE_NIC_PE_MAPPING=1
export NVSHMEM_HCA_LIST=mlx5_1:1,mlx5_7:1,mlx5_9:1,mlx5_13:1
to specify the list of HCAs。

root@f51fec68bf55:~# ibv_devinfo
hca_id: mlx5_0
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:002a:09b8
        sys_image_guid:                 58a2:e103:002a:09b8
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               65535
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_1
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:002a:0e38
        sys_image_guid:                 58a2:e103:002a:0e38
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 515
                        port_lid:               1295
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_2
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:0029:c020
        sys_image_guid:                 58a2:e103:0029:c020
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               65535
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_3
        transport:                      InfiniBand (0)
        fw_ver:                         22.38.1900
        node_guid:                      a088:c203:0030:966c
        sys_image_guid:                 a088:c203:0030:966c
        vendor_id:                      0x02c9
        vendor_part_id:                 4125
        hw_ver:                         0x0
        board_id:                       MT_0000000436
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_4
        transport:                      InfiniBand (0)
        fw_ver:                         22.38.1900
        node_guid:                      a088:c203:0030:966d
        sys_image_guid:                 a088:c203:0030:966c
        vendor_id:                      0x02c9
        vendor_part_id:                 4125
        hw_ver:                         0x0
        board_id:                       MT_0000000436
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_5
        transport:                      InfiniBand (0)
        fw_ver:                         16.32.1010
        node_guid:                      e8eb:d303:00dd:188e
        sys_image_guid:                 e8eb:d303:00dd:188e
        vendor_id:                      0x02c9
        vendor_part_id:                 4119
        hw_ver:                         0x0
        board_id:                       MT_0000000425
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_6
        transport:                      InfiniBand (0)
        fw_ver:                         16.32.1010
        node_guid:                      e8eb:d303:00dd:188f
        sys_image_guid:                 e8eb:d303:00dd:188e
        vendor_id:                      0x02c9
        vendor_part_id:                 4119
        hw_ver:                         0x0
        board_id:                       MT_0000000425
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_7
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:002a:0bd8
        sys_image_guid:                 58a2:e103:002a:0bd8
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 515
                        port_lid:               1292
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_8
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:0029:c7a8
        sys_image_guid:                 58a2:e103:0029:c7a8
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               65535
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_9
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:0029:c700
        sys_image_guid:                 58a2:e103:0029:c700
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 515
                        port_lid:               1287
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_10
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:002a:1708
        sys_image_guid:                 58a2:e103:002a:1708
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 0
                        port_lid:               65535
                        port_lmc:               0x00
                        link_layer:             InfiniBand

hca_id: mlx5_11
        transport:                      InfiniBand (0)
        fw_ver:                         22.38.1900
        node_guid:                      a088:c203:0030:9a0c
        sys_image_guid:                 a088:c203:0030:9a0c
        vendor_id:                      0x02c9
        vendor_part_id:                 4125
        hw_ver:                         0x0
        board_id:                       MT_0000000436
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_12
        transport:                      InfiniBand (0)
        fw_ver:                         22.38.1900
        node_guid:                      a088:c203:0030:9a0d
        sys_image_guid:                 a088:c203:0030:9a0c
        vendor_id:                      0x02c9
        vendor_part_id:                 4125
        hw_ver:                         0x0
        board_id:                       MT_0000000436
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_DOWN (1)
                        max_mtu:                4096 (5)
                        active_mtu:             1024 (3)
                        sm_lid:                 0
                        port_lid:               0
                        port_lmc:               0x00
                        link_layer:             Ethernet

hca_id: mlx5_13
        transport:                      InfiniBand (0)
        fw_ver:                         28.39.2048
        node_guid:                      58a2:e103:002a:1640
        sys_image_guid:                 58a2:e103:002a:1640
        vendor_id:                      0x02c9
        vendor_part_id:                 4129
        hw_ver:                         0x0
        board_id:                       MT_0000000838
        phys_port_cnt:                  1
                port:   1
                        state:                  PORT_ACTIVE (4)
                        max_mtu:                4096 (5)
                        active_mtu:             4096 (5)
                        sm_lid:                 515
                        port_lid:               1297
                        port_lmc:               0x00
                        link_layer:             InfiniBand
<!-- gh-comment-id:2709814541 --> @MinhuiWan commented on GitHub (Mar 10, 2025): @Baibaifan I want use IB to test. My environment is 2 nodes,8 H100 GPUs, 4 IB per node, 1 ethernet per node。Do you test with roce by ethernet? Now I set env: export NVSHMEM_ENABLE_NIC_PE_MAPPING=1 export NVSHMEM_HCA_LIST=mlx5_1:1,mlx5_7:1,mlx5_9:1,mlx5_13:1 to specify the list of HCAs。 ``` root@f51fec68bf55:~# ibv_devinfo hca_id: mlx5_0 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:002a:09b8 sys_image_guid: 58a2:e103:002a:09b8 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 65535 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_1 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:002a:0e38 sys_image_guid: 58a2:e103:002a:0e38 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 515 port_lid: 1295 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_2 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:0029:c020 sys_image_guid: 58a2:e103:0029:c020 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 65535 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_3 transport: InfiniBand (0) fw_ver: 22.38.1900 node_guid: a088:c203:0030:966c sys_image_guid: a088:c203:0030:966c vendor_id: 0x02c9 vendor_part_id: 4125 hw_ver: 0x0 board_id: MT_0000000436 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_4 transport: InfiniBand (0) fw_ver: 22.38.1900 node_guid: a088:c203:0030:966d sys_image_guid: a088:c203:0030:966c vendor_id: 0x02c9 vendor_part_id: 4125 hw_ver: 0x0 board_id: MT_0000000436 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_5 transport: InfiniBand (0) fw_ver: 16.32.1010 node_guid: e8eb:d303:00dd:188e sys_image_guid: e8eb:d303:00dd:188e vendor_id: 0x02c9 vendor_part_id: 4119 hw_ver: 0x0 board_id: MT_0000000425 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_6 transport: InfiniBand (0) fw_ver: 16.32.1010 node_guid: e8eb:d303:00dd:188f sys_image_guid: e8eb:d303:00dd:188e vendor_id: 0x02c9 vendor_part_id: 4119 hw_ver: 0x0 board_id: MT_0000000425 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_7 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:002a:0bd8 sys_image_guid: 58a2:e103:002a:0bd8 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 515 port_lid: 1292 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_8 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:0029:c7a8 sys_image_guid: 58a2:e103:0029:c7a8 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 65535 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_9 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:0029:c700 sys_image_guid: 58a2:e103:0029:c700 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 515 port_lid: 1287 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_10 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:002a:1708 sys_image_guid: 58a2:e103:002a:1708 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 0 port_lid: 65535 port_lmc: 0x00 link_layer: InfiniBand hca_id: mlx5_11 transport: InfiniBand (0) fw_ver: 22.38.1900 node_guid: a088:c203:0030:9a0c sys_image_guid: a088:c203:0030:9a0c vendor_id: 0x02c9 vendor_part_id: 4125 hw_ver: 0x0 board_id: MT_0000000436 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_12 transport: InfiniBand (0) fw_ver: 22.38.1900 node_guid: a088:c203:0030:9a0d sys_image_guid: a088:c203:0030:9a0c vendor_id: 0x02c9 vendor_part_id: 4125 hw_ver: 0x0 board_id: MT_0000000436 phys_port_cnt: 1 port: 1 state: PORT_DOWN (1) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet hca_id: mlx5_13 transport: InfiniBand (0) fw_ver: 28.39.2048 node_guid: 58a2:e103:002a:1640 sys_image_guid: 58a2:e103:002a:1640 vendor_id: 0x02c9 vendor_part_id: 4129 hw_ver: 0x0 board_id: MT_0000000838 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 4096 (5) sm_lid: 515 port_lid: 1297 port_lmc: 0x00 link_layer: InfiniBand ```
Author
Owner

@kunfupanda-hw commented on GitHub (Mar 11, 2025):

I am using RoCE with 4NICs. I have a problem with running test_low_latency.py. I want to use perftest/perftest_install in the nvshmem_src directory, for example, shmem_put_bw. I want to refer to the following process to see how to use perftest. @sphish

Hi, @Baibaifan, what's the problem with your previous settings? Did you pass the test_lowlatency.py? In my setting, there are still QP modification errors. And I run ./nvshmrun -n 2 /work/nvshmem_src_3.2.5-1/nvshmem_src/perftest/perftest_install/device/pt-to-pt/shmem_put_bw, then reported same errors as ibv_modify_qp failed.

<!-- gh-comment-id:2713030165 --> @kunfupanda-hw commented on GitHub (Mar 11, 2025): > > I am using RoCE with 4NICs. I have a problem with running `test_low_latency.py`. I want to use `perftest/perftest_install` in the nvshmem_src directory, for example, `shmem_put_bw`. I want to refer to the following process to see how to use perftest. [@sphish](https://github.com/sphish) Hi, @Baibaifan, what's the problem with your previous settings? Did you pass the `test_lowlatency.py`? In my setting, there are still QP modification errors. And I run `./nvshmrun -n 2 /work/nvshmem_src_3.2.5-1/nvshmem_src/perftest/perftest_install/device/pt-to-pt/shmem_put_bw`, then reported same errors as `ibv_modify_qp failed`.
Author
Owner

@gpzlx1 commented on GitHub (Mar 15, 2025):

Hi everyone,

I’m also encountering an issue with test_low_latency.py, but my error log is slightly different. Here’s the output:

Allocating buffer size: 2116.290944 MB ...
/home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: socketProgress: Connection closed by remote peer h100-216<56124>
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -6 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed

socketProgress: Connection closed by remote peer h100-216<56124>
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -6 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: allgather of ipc handles failed
Message truncated : received 134 bytes instead of 40


/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 building transport map failed
/home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3
allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 135 bytes instead of 40
building transport map failed


/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 211 bytes instead of 40
building transport map failed


/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 214 bytes instead of 40

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
W0315 03:08:11.311000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83147 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83148 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83149 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83151 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83152 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83153 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83154 via signal SIGTERM
Traceback (most recent call last):
  File "/home/test/DeepEP_New/tests/test_low_latency.py", line 166, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 196, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 3 terminated with signal SIGSEGV

What's more, I’m able to successfully pass the tests for nvshmem/pt-to-pt/shmem_put_bw, test_internode.py, and test_intranode.py.

<!-- gh-comment-id:2726146011 --> @gpzlx1 commented on GitHub (Mar 15, 2025): Hi everyone, I’m also encountering an issue with `test_low_latency.py`, but my error log is slightly different. Here’s the output: ```shell Allocating buffer size: 2116.290944 MB ... /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: socketProgress: Connection closed by remote peer h100-216<56124> /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -6 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: Message truncated : received 40 bytes instead of 32 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed socketProgress: Connection closed by remote peer h100-216<56124> /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -6 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: allgather of ipc handles failed Message truncated : received 134 bytes instead of 40 /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 building transport map failed /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting double free or corruption (!prev) /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 135 bytes instead of 40 building transport map failed /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 211 bytes instead of 40 building transport map failed /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting double free or corruption (!prev) /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 214 bytes instead of 40 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting double free or corruption (!prev) W0315 03:08:11.311000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83147 via signal SIGTERM W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83148 via signal SIGTERM W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83149 via signal SIGTERM W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83151 via signal SIGTERM W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83152 via signal SIGTERM W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83153 via signal SIGTERM W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83154 via signal SIGTERM Traceback (most recent call last): File "/home/test/DeepEP_New/tests/test_low_latency.py", line 166, in <module> torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes while not context.join(): ^^^^^^^^^^^^^^ File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 196, in join raise ProcessExitedException( torch.multiprocessing.spawn.ProcessExitedException: process 3 terminated with signal SIGSEGV ``` What's more, I’m able to successfully pass the tests for `nvshmem/pt-to-pt/shmem_put_bw`, `test_internode.py`, and `test_intranode.py`.
Author
Owner

@sphish commented on GitHub (Mar 17, 2025):

Hi everyone,

I’m also encountering an issue with test_low_latency.py, but my error log is slightly different. Here’s the output:

Allocating buffer size: 2116.290944 MB ...
/home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: socketProgress: Connection closed by remote peer h100-216<56124>
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -6 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed

socketProgress: Connection closed by remote peer h100-216<56124>
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -6 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: allgather of ipc handles failed
Message truncated : received 134 bytes instead of 40

/home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 building transport map failed
/home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3
allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 135 bytes instead of 40
building transport map failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 211 bytes instead of 40
building transport map failed

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 214 bytes instead of 40

/home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed

/home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting

double free or corruption (!prev)
W0315 03:08:11.311000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83147 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83148 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83149 via signal SIGTERM
W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83151 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83152 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83153 via signal SIGTERM
W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83154 via signal SIGTERM
Traceback (most recent call last):
File "/home/test/DeepEP_New/tests/test_low_latency.py", line 166, in
torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
while not context.join():
^^^^^^^^^^^^^^
File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 196, in join
raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 3 terminated with signal SIGSEGV
What's more, I’m able to successfully pass the tests for nvshmem/pt-to-pt/shmem_put_bw, test_internode.py, and test_intranode.py.

@gpzlx1 It appears you've encountered a failure during the bootstrap phase of NVSHMEM. Since you were able to bootstrap successfully in normal mode, you can check the low_latency_mode NVSHMEM environment github.com/deepseek-ai/DeepEP@82dcf48fd3/deep_ep/buffer.py (L72-L79) variables and try to identify which specific variable is causing the bootstrap failure.

<!-- gh-comment-id:2727840208 --> @sphish commented on GitHub (Mar 17, 2025): > Hi everyone, > > I’m also encountering an issue with `test_low_latency.py`, but my error log is slightly different. Here’s the output: > > Allocating buffer size: 2116.290944 MB ... > /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: socketProgress: Connection closed by remote peer h100-216<56124> > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -6 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/modules/bootstrap/uid/ncclSocket/ncclsocket_socket.cpp:socketProgress:59: Message truncated : received 40 bytes instead of 32 > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 building transport map failed > > socketProgress: Connection closed by remote peer h100-216<56124> > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:97: non-zero status: -6 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -6 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -6 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: allgather of ipc handles failed > Message truncated : received 134 bytes instead of 40 > > > /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 building transport map failed > /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 > allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting > > double free or corruption (!prev) > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 135 bytes instead of 40 > building transport map failed > > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 40 bytes instead of 32 > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:477: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: /home/test/nvshmem_src/src/host/init/init.cu:992: non-zero status: 7 Message truncated : received 211 bytes instead of 40 > building transport map failed > > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting > > double free or corruption (!prev) > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_net_recv:99: Message truncated : received 214 bytes instead of 40 > > /home/test/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:499: non-zero status: -3 /home/test/nvshmem_src/src/host/topo/topo.cpp:526: non-zero status: -3 allgather of ipc handles failed > > /home/test/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1074: nvshmem initialization failed, exiting > > double free or corruption (!prev) > W0315 03:08:11.311000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83147 via signal SIGTERM > W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83148 via signal SIGTERM > W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83149 via signal SIGTERM > W0315 03:08:11.312000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83151 via signal SIGTERM > W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83152 via signal SIGTERM > W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83153 via signal SIGTERM > W0315 03:08:11.313000 83081 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 83154 via signal SIGTERM > Traceback (most recent call last): > File "/home/test/DeepEP_New/tests/test_low_latency.py", line 166, in <module> > torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) > File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn > return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes > while not context.join(): > ^^^^^^^^^^^^^^ > File "/home/test/miniforge3/envs/deepep/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 196, in join > raise ProcessExitedException( > torch.multiprocessing.spawn.ProcessExitedException: process 3 terminated with signal SIGSEGV > What's more, I’m able to successfully pass the tests for `nvshmem/pt-to-pt/shmem_put_bw`, `test_internode.py`, and `test_intranode.py`. @gpzlx1 It appears you've encountered a failure during the bootstrap phase of NVSHMEM. Since you were able to bootstrap successfully in normal mode, you can check the low_latency_mode NVSHMEM environment https://github.com/deepseek-ai/DeepEP/blob/82dcf48fd315d7b83f2cd2b4f1d1f1fda6af8ed2/deep_ep/buffer.py#L72-L79 variables and try to identify which specific variable is causing the bootstrap failure.
Author
Owner

@gpzlx1 commented on GitHub (Mar 17, 2025):

@sphish Thank you for your prompt response. However, it appears that the issue is more complex than anticipated, as adjusting those settings did not resolve my problem. We will perform an in-depth analysis to pinpoint the bug.

<!-- gh-comment-id:2728654123 --> @gpzlx1 commented on GitHub (Mar 17, 2025): @sphish Thank you for your prompt response. However, it appears that the issue is more complex than anticipated, as adjusting those settings did not resolve my problem. We will perform an in-depth analysis to pinpoint the bug.
Author
Owner

@yyyyyt123 commented on GitHub (Mar 17, 2025):

I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? @Baibaifan Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support

I have the same problem on one 8*H100 cluster node for test_low_latency.py, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed. However, I have tried the ib_write_bw cmd successfully. Any kind suggestion for this problem?

Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7.

sorry for that old logs. The newest logs are as below, with some my comment logs.

(base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py 
local_rank:5, ip:127.0.0.1 port:3004
world_size:8, rank:5
local_rank:4, ip:127.0.0.1 port:3004
world_size:8, rank:4
local_rank:6, ip:127.0.0.1 port:3004
world_size:8, rank:6
local_rank:7, ip:127.0.0.1 port:3004
world_size:8, rank:7
local_rank:0, ip:127.0.0.1 port:3004
world_size:8, rank:0
local_rank:1, ip:127.0.0.1 port:3004
world_size:8, rank:1
local_rank:2, ip:127.0.0.1 port:3004
world_size:8, rank:2
local_rank:3, ip:127.0.0.1 port:3004
world_size:8, rank:3
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setting....
setted...
rank:2, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:0, num_ranks:8
Allocating buffer size: 2116.2912 MB ...
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:1, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
setted...
rank:5, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:4, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:7, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
setted...
rank:3, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
after cpp.Buffer
setted...
rank:6, num_ranks:8
before init buffer
buffer.__init__
before cpp.Buffer
after cpp.Buffer
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
finish all_gather object
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
before runtime.sync
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
ibv_modify_qp failed 

ibv_modify_qp failed 
ibv_modify_qp failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 
ep_connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

transport create connect failed 
transport create connect failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed 


connect EPS failed 

connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed 


nvshmem setup connections failed 

nvshmem setup connections failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 
ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed 
ep_connect failed 
ep_connect failed 

ep_connect failed 



/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed 

transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed 
ibv_modify_qp failed 
connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed 

connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
ep_connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed 

ep_connect failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed 

transport create connect failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed 

nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem setup connections failed 


/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting 
connect EPS failed 


connect EPS failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed 

/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem initialization failed, exiting 

nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 
nvshmem setup connections failed 
nvshmem setup connections failed 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 

nvshmem initialization failed, exiting 
/work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: 
nvshmem initialization failed, exiting 
nvshmem initialization failed, exiting 


W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM
W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM
W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM
W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM
Traceback (most recent call last):
  File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module>
    torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes)
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes
    while not context.join():
              ^^^^^^^^^^^^^^
  File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join
    raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255

By following the logs, we found the calltrace was test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id) in DeepEP and then nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags); in nvshmem_src_3.2.5-1. The status 110 is usually ETIMEDOUT。

Same issue and even identical error log when testing test_low_latency.py on eight H800 with RoCE after switching to NVSHMEM V3.2.5. Does anyone know know to fix this error?

<!-- gh-comment-id:2729515445 --> @yyyyyt123 commented on GitHub (Mar 17, 2025): > > > > I have created a new branch that updates NVSHMEM to version 3.2.5. However, I don't have a RoCE environment for verification. Can you test this out? [@Baibaifan](https://github.com/Baibaifan) Branch: https://github.com/deepseek-ai/DeepEP/tree/roce-support > > > > > > > > > I have the same problem on one 8*H100 cluster node for `test_low_latency.py`, and update NVSHMEM to version 3.2.5 with the newest patch. However, it doesn't work, it lacks for, with the same logs, i.e., `/work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 /work/nvshmem_src_3.1.7-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:417: non-zero status: 110 ibv_modify_qp failed ibv_modify_qp failed`. However, I have tried the `ib_write_bw` cmd successfully. Any kind suggestion for this problem? > > > > > > Could you provide the logs from your NVSHMEM 3.2.5 run? It appears you're still using NVSHMEM 3.1.7. > > sorry for that old logs. The newest logs are as below, with some my comment logs. > > ``` > (base) root@ubuntu:/work/DeepEP-main# python tests/test_low_latency.py > local_rank:5, ip:127.0.0.1 port:3004 > world_size:8, rank:5 > local_rank:4, ip:127.0.0.1 port:3004 > world_size:8, rank:4 > local_rank:6, ip:127.0.0.1 port:3004 > world_size:8, rank:6 > local_rank:7, ip:127.0.0.1 port:3004 > world_size:8, rank:7 > local_rank:0, ip:127.0.0.1 port:3004 > world_size:8, rank:0 > local_rank:1, ip:127.0.0.1 port:3004 > world_size:8, rank:1 > local_rank:2, ip:127.0.0.1 port:3004 > world_size:8, rank:2 > local_rank:3, ip:127.0.0.1 port:3004 > world_size:8, rank:3 > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setting.... > setted... > rank:2, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:0, num_ranks:8 > Allocating buffer size: 2116.2912 MB ... > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:1, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > setted... > rank:5, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:4, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:7, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > setted... > rank:3, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > after cpp.Buffer > setted... > rank:6, num_ranks:8 > before init buffer > buffer.__init__ > before cpp.Buffer > after cpp.Buffer > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > finish all_gather object > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > before runtime.sync > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > ibv_modify_qp failed > > ibv_modify_qp failed > ibv_modify_qp failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > ep_connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > transport create connect failed > transport create connect failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 connect EPS failed > > > connect EPS failed > > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 nvshmem setup connections failed > > > nvshmem setup connections failed > > nvshmem setup connections failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 ibv_modify_qp failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ibv_modify_qp failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 ep_connect failed > ep_connect failed > ep_connect failed > > ep_connect failed > > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 transport create connect failed > > transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 transport create connect failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:418: non-zero status: 110 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 ibv_modify_qp failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ibv_modify_qp failed > ibv_modify_qp failed > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 transport create connect failed > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1433: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > ep_connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 ep_connect failed > > ep_connect failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/modules/transport/ibrc/ibrc.cpp:1500: non-zero status: 7 /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: transport create connect failed > > transport create connect failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 transport create connect failed > > nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem setup connections failed > > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/transport/transport.cpp:400: non-zero status: 7 nvshmem initialization failed, exiting > connect EPS failed > > > connect EPS failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: connect EPS failed > > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem initialization failed, exiting > > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:1007: non-zero status: 7 > nvshmem setup connections failed > nvshmem setup connections failed > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > > nvshmem initialization failed, exiting > /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: /work/nvshmem_src_3.2.5-1/nvshmem_src/src/host/init/init.cu:nvshmemi_check_state_and_init:1080: > nvshmem initialization failed, exiting > nvshmem initialization failed, exiting > > > W0305 11:55:57.242000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19119 via signal SIGTERM > W0305 11:55:57.244000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19120 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19121 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19122 via signal SIGTERM > W0305 11:55:57.245000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19124 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19125 via signal SIGTERM > W0305 11:55:57.246000 19054 site-packages/torch/multiprocessing/spawn.py:169] Terminating process 19126 via signal SIGTERM > Traceback (most recent call last): > File "/work/DeepEP-main/tests/test_low_latency.py", line 164, in <module> > torch.multiprocessing.spawn(test_loop, args=(num_processes,), nprocs=num_processes) > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 340, in spawn > return start_processes(fn, args, nprocs, join, daemon, start_method="spawn") > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 296, in start_processes > while not context.join(): > ^^^^^^^^^^^^^^ > File "/root/miniconda3/lib/python3.12/site-packages/torch/multiprocessing/spawn.py", line 204, in join > raise ProcessExitedException( > torch.multiprocessing.spawn.ProcessExitedException: process 4 terminated with exit code 255 > ``` > > By following the logs, we found the calltrace was `test_loop() --> buffer = deep_ep.Buffer() --> __init__ --> self.runtime.sync(device_ids, ipc_handles, root_unique_id)` in DeepEP and then `nvshmemt_ibrc_connect_endpoints --> nvshmemt_ibrc_ep_connect --> ep_connect --> status = ftable.modify_qp(ep->qp, &attr, flags);` in nvshmem_src_3.2.5-1. The status `110` is usually `ETIMEDOUT`。 Same issue and even identical error log when testing `test_low_latency.py` on eight H800 with RoCE after switching to NVSHMEM V3.2.5. Does anyone know know to fix this error?
Author
Owner

@yyyyyt123 commented on GitHub (Mar 17, 2025):

We can pass the test_intranode.py and test_internode.py. But face the above error in test_low_latency.py.

<!-- gh-comment-id:2729522132 --> @yyyyyt123 commented on GitHub (Mar 17, 2025): We can pass the `test_intranode.py` and `test_internode.py`. But face the above error in `test_low_latency.py`.
Author
Owner

@Alexhaoge commented on GitHub (Oct 25, 2025):

Any updates on this issue( 110 ibv_modify_qp failed)? Same error still occurs for nvshmem 3.3.9.

<!-- gh-comment-id:3446581041 --> @Alexhaoge commented on GitHub (Oct 25, 2025): Any updates on this issue( `110 ibv_modify_qp failed`)? Same error still occurs for nvshmem 3.3.9.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#36
No description provided.