GC3: An Optimizing Compiler for GPU Collective Communication

Meghan Cowan, Saeed Maleki, Madanlal Musuvathi, Olli Saarikivi, Yifan Xiong
1/27/2022
cs.DC

Official code: microsoft/msccl (400 stars, last commit 2026-08-25). 1 more implementation below.

Abstract

Machine learning models made up of millions or billions of parameters are trained and served on large multi-GPU systems. As models grow in size and execute on more GPUs, the collective communications used in these applications become a bottleneck. Custom collective algorithms optimized for both particular network topologies and application specific communication patterns can alleviate this bottleneck and help these applications scale. However, correctly and efficiently implementing custom algorithms is challenging. This paper introduces GC3, a system for programmable GPU communication. GC3 provides a domain specific language for writing collective communication algorithms and an optimizing compiler for lowering them to an executable form, which can be executed efficiently and flexibly in an interpreter based runtime. We used GC3 to write novel collective algorithms for AllReduce and AllToAll that are up to $1.9\times$ and $1.3\times$ faster than hand-optimized implementations, respectively.

View on arXivView PDF

Code Implementations(2)

microsoft/mscclOfficial100%

Microsoft Collective Communication Library

40036C, C++Jul 30, 20211 months agoNOASSERTION
MIT

Synthesizer for optimal collective communication algorithms

12630Shell, PythonApr 22, 20212 years agoMIT

Similar Papers

Cite this paper

@article{cowan2022gc,
  title  = {GC3: An Optimizing Compiler for GPU Collective Communication},
  author = {Meghan Cowan and Saeed Maleki and Madanlal Musuvathi and Olli Saarikivi and Yifan Xiong},
  year   = {2022},
  eprint = {2201.11840},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.11840}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.11840.svg)](https://codeofpaper.com/paper/2201.11840)

Discussion