Skip to content
Denpex Infrastructure Tooling

RoCEv2 and InfiniBand NCCL GID Index Calculator

Parse host GID tables, compute optimal NCCL environment variables, configure lossless Ethernet Quality of Service parameters, and prevent multi-node congestion deadlocks across GPU clusters.

Denpex Enterprise Team Evaluation

Automate distributed training failure diagnosis across PyTorch, FSDP, DeepSpeed, CUDA, and NCCL on GPU clusters with our 30-day free trial.

Start 30-Day Free Trial

Parsed 4 GID entries successfully. Select a specific GID entry below or rely on automated RoCEv2 IPv4 selection.

NCCL and Fabric Tuning Parameters

26
AF31 (26)EF (46)CS6 (48)

Parsed GID Table and Index Selection

SelIdxDeviceVersionIP Address
0mlx5_0:1RoCE v1Link-Local
1mlx5_0:1RoCE v110.0.1.5
2mlx5_0:1RoCE v2Link-Local
3mlx5_0:1RoCE v210.0.1.5

Recommended GID index: 3 (RoCE v2 with IPv4 mapping).

Generated NCCL Environment Variables

export NCCL_IB_GID_INDEX=3
export NCCL_IB_TC=104
export NCCL_IB_SL=3
export NCCL_NET_GDR_LEVEL=5
export NCCL_IB_HCA=mlx5_0:1
export NCCL_IB_QPS_PER_CONNECTION=4
Calculated Traffic Class (TC)DSCP 26 × 4 = 104
Service Level (SL)3

Lossless Ethernet Switch Configuration Recipes

Apply matching DSCP to Traffic Class maps on your top-of-rack switches.

Vendor OS: aristaTarget DSCP: 26
class-map type qos match-any RDMA
  match dscp 26
policy-map type qos QOS-POLICY
  class RDMA
    set traffic-class 3

RoCEv2 Deadlock and Hang Prevention Checklist

1

Ensure PFC (Priority Flow Control) is enabled on the switch for the specified Priority/Traffic Class.

2

Verify ECN (Explicit Congestion Notification) is active on the switch for traffic mapped to DSCP 26.

3

Check that the firewall (e.g. iptables/ufw) is not dropping UDP traffic on RoCE v2 ports.

4

Run ib_write_bw or rping before running NCCL to validate native RDMA connectivity.