Skip to content

[WIP] change to cross nic=2 to allow for alternating ring algo and nccl==2.23.4 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions samples/gpu/nccl_run_allreduce_containers_H100.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,18 @@ else
echo "Use the appropriate nccl test run script for non H100 nodes"
fi

export NCCL_CROSS_NIC=0 \
NCCL_SOCKET_NTHREADS=16 \
export NCCL_CROSS_NIC=2 \
NCCL_DEBUG=WARN \
NCCL_CUMEM_ENABLE=0 \
NCCL_IB_SPLIT_DATA_ON_QPS=0 \
NCCL_IB_QPS_PER_CONNECTION=16 \
NCCL_IB_QPS_PER_CONNECTION=1 \
NCCL_IB_GID_INDEX=3 \
NCCL_IB_TC=41 \
NCCL_IB_SL=0 \
NCCL_IB_TIMEOUT=22 \
NCCL_NET_PLUGIN=none \
NCCL_SOCKET_IFNAME=eth0 \
NCCL_IGNORE_CPU_AFFINITY=1 \
NCCL_IB_HCA="=mlx5_0,mlx5_1,mlx5_3,mlx5_4,mlx5_5,mlx5_6,mlx5_7,mlx5_8,mlx5_9,mlx5_10,mlx5_12,mlx5_13,mlx5_14,mlx5_15,mlx5_16,mlx5_17" \
NCCL_TOPO_FILE=/nfs/cluster/H100-topology.xml \
HCOLL_ENABLE_MCAST_ALL=0 \
coll_hcoll_enable=0 \
UCX_TLS=tcp \
Expand All @@ -64,7 +61,7 @@ export NCCL_CROSS_NIC=0 \
env | grep "SLURMD_NODENAME="
USER=`whoami`

CONTAINER_IMAGE="/home/ubuntu/nvcr.io+nvidia+pytorch+24.01-py3.sqsh"
CONTAINER_IMAGE="nvcr.io#nvidia/pytorch:24.12-py3"
CONTAINER_MOUNTS="/opt/oci-hpc/nccl-test:/nccl,$LOCAL_MPI:$LOCAL_MPI,/nfs/cluster:/nfs/cluster"
echo $LOCAL_MPI
echo $MPIVARS_PATH
Expand All @@ -75,5 +72,6 @@ srun --mpi=pmi2 --gpus-per-node=$SBATCH_GPUS_PER_NODE \
--container-mounts=$CONTAINER_MOUNTS \
bash -c "
source $MPIVARS_PATH &&
/nccl/build/all_reduce_perf -b 1G -e 16G -f 2 -g 1
"
/nccl/build/all_reduce_perf -b 8 -e 16G -f 2 -g 1
"