[GH-ISSUE #54] python tests/test_low_latency.py Hang on a single node #51

Closed
opened 2026-10-26 09:53:16 +00:00 by bsakaguchi · 16 comments
Owner

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

On single node with 8 H800, the program Hang after NCCL INFO [6] NCCL INFO Connected all rings

Originally created by @Huixxi on GitHub (Mar 7, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/54 On single node with 8 H800, the program Hang after NCCL INFO [6] NCCL INFO Connected all rings
Author
Owner

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

Is the program hanging inside NCCL?

<!-- gh-comment-id:2708631040 --> @sphish commented on GitHub (Mar 9, 2025): Is the program hanging inside NCCL?
Author
Owner

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

Is the program hanging inside NCCL?

Yes, it's absolutely right. test_internode also have the same problem. torch.dist can't connection through RoCE RDMA after I install the gdrcopy v2.4.4. I don't know why.

<!-- gh-comment-id:2708755824 --> @Huixxi commented on GitHub (Mar 9, 2025): > Is the program hanging inside NCCL? Yes, it's absolutely right. test_internode also have the same problem. torch.dist can't connection through RoCE RDMA after I install the gdrcopy v2.4.4. I don't know why.
Author
Owner

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

I haven't encountered this issue before. Maybe you can submit an issue to gdrcopy repo to ask about it.

<!-- gh-comment-id:2709206895 --> @sphish commented on GitHub (Mar 10, 2025): I haven't encountered this issue before. Maybe you can submit an issue to gdrcopy repo to ask about it.
Author
Owner

@Huixxi commented on GitHub (Mar 11, 2025):

I haven't encountered this issue before. Maybe you can submit an issue to gdrcopy repo to ask about it.
self.runtime = deep_ep_cpp.Buffer(self.rank, self.group_size, num_nvl_bytes, num_rdma_bytes, low_latency_mode)

I've check the code and find it hang at deep_ep/buffer.py self.runtime.sync(device_ids, ipc_handles, root_unique_id), any suggestions?

<!-- gh-comment-id:2712583028 --> @Huixxi commented on GitHub (Mar 11, 2025): > I haven't encountered this issue before. Maybe you can submit an issue to gdrcopy repo to ask about it. `self.runtime = deep_ep_cpp.Buffer(self.rank, self.group_size, num_nvl_bytes, num_rdma_bytes, low_latency_mode)` I've check the code and find it hang at deep_ep/buffer.py `self.runtime.sync(device_ids, ipc_handles, root_unique_id)`, any suggestions?
Author
Owner

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

  1. You can print some log to check whether all ranks have reached this function.
  2. This function initializes NVSHMEM, so it may be getting stuck here. You can set NVSHMEM_DEBUG=TRACE to see the log further.
<!-- gh-comment-id:2712665303 --> @sphish commented on GitHub (Mar 11, 2025): 1. You can print some log to check whether all ranks have reached this function. 2. This function initializes NVSHMEM, so it may be getting stuck here. You can set NVSHMEM_DEBUG=TRACE to see the log further.
Author
Owner

@Huixxi commented on GitHub (Mar 11, 2025):

  1. You can print some log to check whether all ranks have reached this function.
  2. This function initializes NVSHMEM, so it may be getting stuck here. You can set NVSHMEM_DEBUG=TRACE to see the log further.

Ok, thanks. I've checked that all ranks could print the log text above this line codes. And after I added this flag, the final logs looks like this then hang:

 :49450:49450 [0] NVSHMEM INFO [0] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49456:49456 [6] NVSHMEM INFO [6] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49457:49457 [7] NVSHMEM INFO [7] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49455:49455 [5] NVSHMEM INFO [5] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49452:49452 [2] NVSHMEM INFO [2] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49454:49454 [4] NVSHMEM INFO [4] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49453:49453 [3] NVSHMEM INFO [3] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209
 :49451:49451 [1] NVSHMEM INFO [1] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209

/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET
/home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0

 :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE

 :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3


 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1


/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE

 :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4


 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3


/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER
 :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE


 :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1


 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4

 :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3



 :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER

 :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1

 :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE

 :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4



 :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3


/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER
 :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3

 :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4

 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1




/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER

 :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4

 :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1

 :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4

 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER

 :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3

 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4


/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER
 :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4

/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE
/home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE
<!-- gh-comment-id:2712714171 --> @Huixxi commented on GitHub (Mar 11, 2025): > 1. You can print some log to check whether all ranks have reached this function. > 2. This function initializes NVSHMEM, so it may be getting stuck here. You can set NVSHMEM_DEBUG=TRACE to see the log further. Ok, thanks. I've checked that all ranks could print the log text above this line codes. And after I added this flag, the final logs looks like this then hang: ``` :49450:49450 [0] NVSHMEM INFO [0] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49456:49456 [6] NVSHMEM INFO [6] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49457:49457 [7] NVSHMEM INFO [7] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49455:49455 [5] NVSHMEM INFO [5] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49452:49452 [2] NVSHMEM INFO [2] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49454:49454 [4] NVSHMEM INFO [4] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49453:49453 [3] NVSHMEM INFO [3] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 :49451:49451 [1] NVSHMEM INFO [1] status 0 cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 138 NET/IB: Ip address '::' is invalid for family AF_INET, ignoring address /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 103 NVSHMEM_IB_ADDR_FAMILY set by environment to AF_INET /home/logs/nvshmem_src/src/modules/transport/common/transport_ib_common.h 126 NVSHMEM_IB_ADDR_RANGE set by environment to ::/0 :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE :49455:49455 [5] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 :49451:49451 [1] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE :49453:49453 [3] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 :49456:49456 [6] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER :49457:49457 [7] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 1 :49452:49452 [2] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 3 :49454:49454 [4] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER :49450:49450 [0] /home/logs/nvshmem_src/src/host/team/team_internal.cpp:589 NVSHMEM WARN Skipping NVLINK SHARP resource initialized for team ID: 4 /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 5 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 1 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 6 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 2 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 3 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 4 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 7 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:559: rank 0 nranks 8 tag 0 - ENTER /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 5 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 1 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 6 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 2 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 3 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 4 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 7 nranks 8 tag 3 - DONE /home/logs/nvshmem_src/src/modules/bootstrap/uid/bootstrap_uid.cpp:bootstrap_uid_barrier:575: rank 0 nranks 8 tag 3 - DONE ```
Author
Owner

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

It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace.

<!-- gh-comment-id:2712801570 --> @sphish commented on GitHub (Mar 11, 2025): It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace.
Author
Owner

@Huixxi commented on GitHub (Mar 11, 2025):

It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace.

there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter?

<!-- gh-comment-id:2712809871 --> @Huixxi commented on GitHub (Mar 11, 2025): > It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace. there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter?
Author
Owner

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

It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace.

there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter?

This is a normal log. Doesn't matter.

<!-- gh-comment-id:2712863075 --> @sphish commented on GitHub (Mar 11, 2025): > > It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace. > > there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter? This is a normal log. Doesn't matter.
Author
Owner

@Huixxi commented on GitHub (Mar 11, 2025):

It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace.

there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter?

This is a normal log. Doesn't matter.

Some gdb info:

(gdb) bt
#0  0x00007ffc907f2ada in ?? ()
#1  0x00007f62a6aec96d in clock_gettime () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f61e148d0b4 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1
#3  0x00007f61e13aa8d4 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1
#4  0x00007f61e146d97a in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1
#5  0x00007f61e16c7489 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1
#6  0x00007f61e15146cd in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1
#7  0x00007f629b2143a5 in ?? () from /usr/local/cuda/targets/x86_64-linux/lib/libcudart.so.12
#8  0x00007f629b2757d8 in cudaStreamSynchronize ()
   from /usr/local/cuda/targets/x86_64-linux/lib/libcudart.so.12
#9  0x00007f615f6ad234 in nvshmemi_barrier(int) ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#10 0x00007f615f6bbd08 in nvshmemi_common_init(nvshmemi_state_dec*) ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#11 0x00007f615f6bd3ed in nvshmemi_try_common_init(nvshmemi_state_dec*) ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#12 0x00007f615f6bd928 in nvshmemid_hostlib_init_attr ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#13 0x00007f615f7c4451 in nvshmemi_init_thread(int, int*, unsigned int, nvshmemx_init_attr_v1*, nvshmemi_version_t) ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#14 0x00007f615f6ac191 in deep_ep::internode::init(std::vector<unsigned char, std::allocator<unsigned char> > const&, int, int, bool) ()
   from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so
#15 0x00007f615f65a57a in deep_ep::Buffer::sync (this=0x673bb20, device_ids=..., 
    all_gathered_handles=std::vector of length 8, capacity 8 = {...}, 
    root_unique_id_opt=std::optional = {...}) at /home/logs/DeepEP/csrc/deep_ep.cpp:200
<!-- gh-comment-id:2713718911 --> @Huixxi commented on GitHub (Mar 11, 2025): > > > It seems that there is no useful information from the logs. Perhaps you could use gdb to attach and check the stack trace. > > > > > > there seems a cuda error: cudaErrorInvalidValue 1 cudaErrorInvalidSymbol 13 cudaErrorInvalidMemcpyDirection 21 cudaErrorNoKernelImageForDevice 209 does it matter? > > This is a normal log. Doesn't matter. Some gdb info: ``` (gdb) bt #0 0x00007ffc907f2ada in ?? () #1 0x00007f62a6aec96d in clock_gettime () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007f61e148d0b4 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1 #3 0x00007f61e13aa8d4 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1 #4 0x00007f61e146d97a in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1 #5 0x00007f61e16c7489 in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1 #6 0x00007f61e15146cd in ?? () from /usr/local/cuda/compat/lib/libcuda.so.1 #7 0x00007f629b2143a5 in ?? () from /usr/local/cuda/targets/x86_64-linux/lib/libcudart.so.12 #8 0x00007f629b2757d8 in cudaStreamSynchronize () from /usr/local/cuda/targets/x86_64-linux/lib/libcudart.so.12 #9 0x00007f615f6ad234 in nvshmemi_barrier(int) () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #10 0x00007f615f6bbd08 in nvshmemi_common_init(nvshmemi_state_dec*) () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #11 0x00007f615f6bd3ed in nvshmemi_try_common_init(nvshmemi_state_dec*) () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #12 0x00007f615f6bd928 in nvshmemid_hostlib_init_attr () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #13 0x00007f615f7c4451 in nvshmemi_init_thread(int, int*, unsigned int, nvshmemx_init_attr_v1*, nvshmemi_version_t) () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #14 0x00007f615f6ac191 in deep_ep::internode::init(std::vector<unsigned char, std::allocator<unsigned char> > const&, int, int, bool) () from /home/admin/.local/lib/python3.12/site-packages/deep_ep-1.0.0+e995aa2-py3.12-linux-x86_64.egg/deep_ep_cpp.cpython-312-x86_64-linux-gnu.so #15 0x00007f615f65a57a in deep_ep::Buffer::sync (this=0x673bb20, device_ids=..., all_gathered_handles=std::vector of length 8, capacity 8 = {...}, root_unique_id_opt=std::optional = {...}) at /home/logs/DeepEP/csrc/deep_ep.cpp:200 ```
Author
Owner

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

Do all ranks reach this barrier?

<!-- gh-comment-id:2714353420 --> @sphish commented on GitHub (Mar 11, 2025): Do all ranks reach this barrier?
Author
Owner

@Huixxi commented on GitHub (Mar 13, 2025):

Do all ranks reach this barrier?

Thx. We've checked this problem and initially determined that it is associated with virtual network possibly. Maybe need to close the sriov's vf and use hostnetwork directly.

<!-- gh-comment-id:2719772556 --> @Huixxi commented on GitHub (Mar 13, 2025): > Do all ranks reach this barrier? Thx. We've checked this problem and initially determined that it is associated with virtual network possibly. Maybe need to close the sriov's vf and use hostnetwork directly.
Author
Owner

@zhouheyang-alibaba commented on GitHub (Mar 13, 2025):

I've met the same problem on sriov vf network. Is there any way to solve this problem on a virtualized network?

<!-- gh-comment-id:2720931906 --> @zhouheyang-alibaba commented on GitHub (Mar 13, 2025): I've met the same problem on sriov vf network. Is there any way to solve this problem on a virtualized network?
Author
Owner

@DeepTecher commented on GitHub (Dec 3, 2025):

+1

<!-- gh-comment-id:3604932871 --> @DeepTecher commented on GitHub (Dec 3, 2025): +1
Author
Owner

@alpha-baby commented on GitHub (Dec 19, 2025):

maybe you can try off PCIe ACS or open ACS Upstream Forwarding.

Image

detail: https://developer.aliyun.com/article/1071405

<!-- gh-comment-id:3673828269 --> @alpha-baby commented on GitHub (Dec 19, 2025): maybe you can try off PCIe ACS or open ACS Upstream Forwarding. <img width="2910" height="2048" alt="Image" src="https://github.com/user-attachments/assets/7b2362f9-2914-43b2-8e30-eed6a82bf9bb" /> detail: https://developer.aliyun.com/article/1071405
Author
Owner

@Ken-Liu commented on GitHub (Dec 19, 2025):

Looks like the NIC has VFs enabled, but the PCIe switch chip on the target server doesn't support routing VF BAR space addresses. This causes the GPU's PCIe posted writes to be dropped when it rings the doorbell.

Image

This issue typically occurs only in PCIe downstream ports.
To work around this issue, we can redirect such TLP packets to the Root Complex (RC) for indirect forwarding via the upstream port when they do not match any routing rules. This can be achieved by enabling the ACS (Access Control Services) Upstream Forwarding feature.

Image

intel iommu=OFF;
NIC ATS=OFF
PCIE ACS=0010 (Upstream Forwarding Enable)
Only PCIe posted requests (like doorbell rings) take the forwarding path shown in the next picture, so they don’t really affect overall performance.

Image
<!-- gh-comment-id:3674325983 --> @Ken-Liu commented on GitHub (Dec 19, 2025): Looks like the NIC has VFs enabled, but the PCIe switch chip on the target server doesn't support routing VF BAR space addresses. This causes the GPU's PCIe posted writes to be dropped when it rings the doorbell. <img width="1152" height="386" alt="Image" src="https://github.com/user-attachments/assets/afbdb083-b158-424c-89d1-8de7a63f5562" /> This issue typically occurs only in PCIe downstream ports. To work around this issue, we can redirect such TLP packets to the Root Complex (RC) for indirect forwarding via the upstream port when they do not match any routing rules. This can be achieved by enabling the ACS (Access Control Services) Upstream Forwarding feature. <img width="1152" height="584" alt="Image" src="https://github.com/user-attachments/assets/f1b4b9dd-3de5-48c4-b0d1-72d9681df3c3" /> intel iommu=OFF; NIC ATS=OFF PCIE ACS=0010 (Upstream Forwarding Enable) Only PCIe posted requests (like doorbell rings) take the forwarding path shown in the next picture, so they don’t really affect overall performance. <img width="1152" height="552" alt="Image" src="https://github.com/user-attachments/assets/05a5066c-33d5-4da7-baed-5a1262c6be36" />
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#51
No description provided.