Deep Learning Communication (DLcomm) Benchmark
DLComm is a communication benchmark designed for Deep Learning and AI workloads. Collective communication performance is often the primary bottleneck in AI training, inference, reasoning, and large-scale applications. DLComm emulates the communication patterns of the latest large language models (LLMs) and AI applications at scale, specifically targeting deployments of 50,000 GPUs and beyond.
The benchmark is provided as an executable that can be configured to test various communication patterns within different AI distributed runtime frameworks. It uses a modular design to support all levels of communicator groups across GPUs, with flexible configurations for payload sizes, AI frameworks, and collective communication backends. DLComm enables testing on diverse systems, supports modifying scale-up and scale-out algorithms, and verifies correctness after communication operations.
Unlike traditional communication benchmarks, DLComm is built with the philosophy of reflecting real-world communication performance of the application as accurately as possible. It captures the interplay between Python runtimes, AI frameworks, and collective communication libraries (CCL) to provide insights that are directly relevant to actual AI workloads.
The figure below illustrates a simple model of how DLComm can form different communication groups across GPUs on multiple compute nodes. It shows how GPUs can be selected within nodes, across nodes, or as a flat group, allowing users to explicitly specify which GPU IDs participate in each collective communication group.
Installation and running DLCOMM
Requires Python 3.9-3.13 (hydra-core 1.3.x does not start on Python 3.14).
pip install dlcomm # latest release from PyPI
# or the current master:
pip install git+https://github.com/argonne-lcf/DLcomm_benchmark.git
The example configs live in examples/ in this repository, so clone it to get them.
dlcomm needs a config to start (dlcomm --help alone fails, by Hydra design):
dlcomm --config-path=examples/10_ulyss --config-name=10_ulyss_nccl --cfg job # parse only
ALCF Polaris
A plain pip install dlcomm on Polaris gives a CUDA 13 PyTorch build and an mpi4py
with its own bundled MPI instead of Cray MPICH. Use the install script instead:
bash scripts/install_dlcomm_polaris.sh <venv_dir> pypi # or: git (current master)
PYBASE=/path/to/python3.12 bash scripts/install_dlcomm_polaris.sh <venv_dir> pypi
It installs torch from the PyTorch cu128 index, builds mpi4py from source against
Cray MPICH (with the darshan module unloaded, whose libdarshan needs a Cray MPICH
library that is no longer shipped), installs dlcomm, and checks the imports. PYBASE
must be a Python 3.9-3.13 with development headers (Python.h). Set
DLCOMM_EXAMPLE_YAML=<clone>/examples/10_ulyss/10_ulyss_nccl.yaml to also check that a
config loads.
Running the benchmark
YAML configuration file
Workload characteristics for DL COMM are specified by a YAML configuration file. Multiple example configurations are available in the examples/ directory, organized in numbered folders (e.g., examples/1_simple_flat/, examples/2_multimode/). Each folder contains complete configuration files and corresponding job scripts.
Below is an example configuration file
framework : pytorch
ccl_backend : ccl # rccl / nccl / xccl (Note: PyTorch 2.7+ users should use 'xccl' instead of 'ccl' for Intel oneCCL)
extended_logging : off
barrier : on # on / off - on: adds MPI barrier before timer printing for accurate timing, off: only rank 0 prints
device_type : gpu
memory_source : gpu
order_of_run: [simple-allreduce]
simple-allreduce:
comm_group: flatview
num_compute_nodes: 2
num_devices_per_node: 12
device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
verify_correctness: on
collective:
collective_name: allreduce # allgather / reducescatter / broadcast / allreduce / alltoall
collective_op: sum # max / min / prod / sum
scale_up_algorithm: default
scale_out_algorithm: default
iterations: 5
warmup_iterations: 2
add_mxm_compute: on
payload:
dtype: float32 # float64 / int32 / int64 / bfloat16 / float8 / float32
count:
buffer_size: 100KB
Example 2: Multi-mode Communication
The examples/2_multimode/ directory demonstrates running multiple collective operations with different communication group modes in a single benchmark run. This example shows:
- Sequential Execution: Two different collectives run in order
- Within-node: AllGather operation across GPUs within the same node
- Across-node: AllReduce operation across GPUs on different nodes
- Memory Source: Host memory instead of GPU memory
- Buffer Size: 512KB for both operations
framework : pytorch
ccl_backend : ccl
extended_logging : off
barrier : on
device_type : gpu
memory_source : host
order_of_run: [within-node-allgather, across-node-allreduce]
within-node-allgather:
comm_group: within_node
num_compute_nodes: 2
num_devices_per_node: 12
device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
verify_correctness: on
collective:
collective_name: allgather
collective_op: sum
scale_up_algorithm: default
scale_out_algorithm: default
iterations: 5
warmup_iterations: 2
add_mxm_compute: on
payload:
dtype: float32
count:
buffer_size: 512KB
across-node-allreduce:
comm_group: across_node
num_compute_nodes: 2
num_devices_per_node: 12
device_ids_per_node: [0,1,2,3,4,5,6,7,8,9,10,11]
verify_correctness: on
collective:
collective_name: allreduce
collective_op: sum
scale_up_algorithm: default
scale_out_algorithm: default
iterations: 5
warmup_iterations: 2
add_mxm_compute: on
payload:
dtype: float32
count:
buffer_size: 512KB
RCCL and JAX Support
RCCL with PyTorch
DLcomm supports AMD's ROCm Collective Communications Library (RCCL) for AMD GPU systems. The examples/8_rccl_pytorch/ directory demonstrates comprehensive collective communication testing with RCCL backend.
Key Features:
- All Collective Operations: Tests 10 different collective operations (allreduce, allgather, reducescatter, broadcast, reduce, alltoall, alltoallsingle, gather, scatter, barrier)
- RCCL Backend: Uses
ccl_backend: ncclfor RCCL integration with PyTorch - AMD GPU Optimized: Configured for AMD GPU systems with ROCm
Job Script Requirements:
# Environment modules
module load miniforge3/23.11.0-0
module load cray-python
module load rocm/6.2.4
# Network configuration for AMD systems
export NCCL_SOCKET_IFNAME=hsn0
export MASTER_ADDR=$(ip -4 addr show dev hsn0 | awk '/inet/{print $2}' | cut -d/ -f1)
# SLURM execution
srun --ntasks=16 --export=ALL --cpu-bind=threads \
python3 -m dl_comm.dl_comm_main \
--config-path="$SCRIPT_DIR" \
--config-name=8_rccl_pytorch
JAX Support (Experimental)
DLcomm provides experimental support for JAX framework with limited collective operations. The examples/9_rccl_jax/ directory demonstrates JAX integration.
Current Limitations:
- Experimental Status: JAX support is under active development
- Limited Collectives: Only 2 collective operations currently supported (allreduce, allgather)
- Verification Disabled: Correctness verification is turned off (
verify_correctness: off)
JAX Configuration:
framework : jax
ccl_backend : nccl
barrier : off
order_of_run: [allreduce-jax, allgather-jax]
JAX Job Script Requirements:
# JAX-specific environment setup
eval "$(/sw/frontier/miniforge3/23.11.0-0/bin/conda shell.bash hook)"
conda activate jax_env-frontier
# JAX platform configuration
export JAX_PLATFORMS=rocm
export COORDINATOR_ADDR=$(scontrol show hostname $SLURM_NODELIST | head -n1)
export COORDINATOR_PORT=1234
# SLURM execution with JAX-specific parameters
srun --ntasks=16 --gpus-per-task=1 --cpus-per-task=1 --export=ALL \
python3 -m dl_comm.dl_comm_main \
--config-path="$SCRIPT_DIR" \
--config-name=9_rccl_jax
Note: JAX support is experimental and may have limitations compared to PyTorch. Only allreduce and allgather operations are currently implemented.
Important Note for PyTorch Users
Backend Naming: The ccl_backend field naming depends on your PyTorch version:
- PyTorch < 2.7: Use
ccl_backend: cclfor Intel oneCCL - PyTorch 2.7+: Use
ccl_backend: xcclfor Intel oneCCL
Make sure to use the correct backend name for your PyTorch version to avoid initialization errors.
Correctness Verification
DLComm includes built-in correctness verification for all collective operations. When verify_correctness: on is set in the configuration:
- Verification Scope: Correctness is checked on all iterations to ensure consistent behavior
- Failure-Only Reporting: Correctness results are only printed when failures occur to reduce log noise
- Detailed Diagnostics: Failed verifications include iteration number and specific rank information
- Comprehensive Coverage: All collective operations (AllReduce, AllGather, ReduceScatter, etc.) are validated
Cross-layer comparison
dl_comm.analysis.compare_layers places OSU/MPI, C++ oneCCL, C++ SYCL transfer,
torch.distributed and torchcomms side by side for the same operation and message size.
OSU figures are not directly comparable to the other layers. OSU Micro-Benchmarks allocate host buffers and move data through the host path, while DLcomm's oneCCL, torch.distributed and torchcomms layers allocate device buffers and move data device-to-device. The two measure different paths, so a ratio between them mixes interconnect performance with PCIe transfer cost.
The comparison tool therefore labels each row with its buffer placement and refuses to compute a ratio across placements, reporting instead:
not compared:
OSU / MPI (host) vs C++ CCL (device): different memory, no ratio computed
OSU rows are useful as a host-path reference point and as an independent check on trends, not as an absolute bound on the device-path layers. A host-buffer DLcomm configuration is required before any OSU-to-DLcomm ratio can be stated.
How to contribute
We welcome contributions from the community to the benchmark code. If you would like to contribute, please submit an issue to https://github.com/argonne-lcf/DLcomm_benchmark/issues, and contact ALCF DLCOMM team, Kaushik Velusamy at kaushik.v@anl.gov , Musa Cim at mtc5693@psu.edu
Citation and Reference
Acknowledgments
This work used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility under Contract DE-AC02-06CH11357 and is supported in part by National Science Foundation under NSF, OCI-1835764 and NSF, CSR-1814872.
License
Apache 2.0 LICENSE
Copyright (c) 2025, UChicago Argonne, LLC All Rights Reserved
If you have questions about your rights to use or distribute this software, please contact Argonne Intellectual Property Office at partners@anl.gov
NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
Metadata
Release files for dlcomm 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dlcomm-0.4.0.tar.gz | 177.4 kB | Without provenance | Details for dlcomm-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dlcomm-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for dlcomm-0.4.0-py3-none-any.whl |
Total release size: 293.1 kB
Release files / dlcomm-0.4.0.tar.gz
| Download URL | dlcomm-0.4.0.tar.gz |
|---|---|
| Size | 177.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d9345f6b6d90dfcd2a7dc9c4a45ca6d0690a89dc1b2fa0144451278746cf9d8
|
|
BLAKE2b-256 checksum How to use checksums |
a7666912ea86ad5b5ec3e9a46da377e08453d74c404e80b5a3d0f65fbab2b736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / dlcomm-0.4.0-py3-none-any.whl
| Download URL | dlcomm-0.4.0-py3-none-any.whl |
|---|---|
| Size | 115.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdebc969f8bb9e6822887a278bfecd3a5fd473497ff5e1b0083f10683d6b068e
|
|
BLAKE2b-256 checksum How to use checksums |
b9c6d676af16610cf8b1bf9377dabae5a12cc289e3d1edbfef8d9a2c756c73fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for dlcomm 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.