microsoft/mscclpp

MSCCL++: A GPU-driven communication stack for scalable AI applications

What it solves

MSCCL++ tackles the complexity and inefficiency of inter-GPU communication in distributed AI applications. Traditional communication stacks often force developers to juggle memory-ordering rules, avoid deadlocks, and pay overhead from intermediate buffers. MSCCL++ redefines these interfaces to make data movement between GPUs fast, flexible, and easy to customize, which is especially important for scaling LLM inference and training workloads that rely on tensor parallelism.

How it works

MSCCL++ provides communication abstractions at multiple levels, from very low-level (close to hardware) to high-level (close to application APIs). It offers one-sided, zero-copy primitives like put(), get(), signal(), flush(), and wait() that let a GPU push data to a remote GPU as soon as it's ready, without the remote side issuing a receive instruction. This enables overlapping communication with computation and custom collective algorithms without deadlock risk. The same interfaces work regardless of whether the remote GPU is on the same node or a different node, and whether the link is NVLink/xGMI or InfiniBand. Two channel types are provided: PortChannel uses a host-side proxy to trigger DMA operations and needs only a single GPU thread, while MemoryChannel has GPU threads directly read/write remote memory for low-latency scenarios. A default host-side proxy busy-polls GPU triggers, and users can write custom proxies for further optimization. Python bindings simplify integration.

Who it’s for

MSCCL++ is for developers and researchers building distributed GPU applications that need high-performance, customizable inter-GPU communication. It is particularly relevant for those optimizing LLM inference and training, tensor parallelism, and custom collective operations. The README lists projects using it, including ARK, FlashInfer, LMDeploy, SGLang, and RCCL.

Highlights

  • Lightweight, multi-layer abstractions from hardware-near to application-level
  • One-sided, zero-copy synchronous and asynchronous primitives (put, get, signal, flush, wait)
  • Unified interfaces across NVLink/xGMI and InfiniBand, local and remote nodes
  • Two channel types: PortChannel (host-proxy driven, single-thread) and MemoryChannel (GPU-thread direct, low-latency)
  • Customizable host-side proxy for tailored trigger handling
  • Python bindings for easier integration
  • Significant AllReduce speedups over NCCL, especially for LLM serving workloads
  • Adopted by multiple production-grade AI projects

Related

  • Project
  • Project
  • Project
  • Project
  • Project