MSCCL++: 重新思考用于AI推理的GPU通信抽象
MSCCL++: Rethinking GPU Communication Abstractions for AI Inference
AI总结:
MSCCL++通过提供高性能、可移植的通信内核设计方法,优化AI推理和集体通信性能,已在微软Azure和AMD的GPU库中应用。
摘要:
随着AI应用越来越多地在快速演进的异构硬件上运行以最大化性能,通用库在支持这些特性方面却显得滞后。注重性能的程序员常常构建定制化的通信栈,这些栈虽然速度快但容易出错且不具可移植性。本文介绍了MSCCL++,一种设计方法论,用于开发高性能且可移植的通信内核。它提供了(1)一个低级的、性能保持的原始接口,该接口暴露了最小的硬件抽象,同时隐藏了同步和一致性复杂性;(2)一个更高层次的DSL,供应用开发者实现工作负载特定的通信算法;(3)一个高效的算法库,实现了标准的集体API,使用户能够以最小的专 expertise 采用。与最先进的基线相比,MSCCL++在集体通信中实现了几何平均加速1.7倍(最高5.4倍),在AI推理工作负载中实现了1.2倍(最高1.38倍)的加速。MSCCL++已在多个由微软Azure提供的AI服务中投入生产,并已被AMD维护的GPU集体通信库RCCL采用。MSCCL++是开源的,可在https://github.com/microsoft/mscclpp上获取。我们两年的MSCCL++经验表明,其抽象具有鲁棒性,能够支持新硬件特性,如多内存,在开发几周内即可实现。
英文摘要:
AI applications increasingly run on fast-evolving, heterogeneous hardware to maximize performance, but general-purpose libraries lag in supporting these features. Performance-minded programmers often build custom communication stacks that are fast but error-prone and non-portable. This paper introduces MSCCL++, a design methodology for developing high-performance, portable communication kernels. It provides (1) a low-level, performance-preserving primitive interface that exposes minimal hardware abstractions while hiding the complexities of synchronization and consistency, (2) a higher-level DSL for application developers to implement workload-specific communication algorithms, and (3) a library of efficient algorithms implementing the standard collective API, enabling adoption by users with minimal expertise. Compared to state-of-the-art baselines, MSCCL++ achieves geomean speedups of $1.7\times$ (up to $5.4\times$) for collective communication and $1.2\times$ (up to $1.38\times$) for AI inference workloads. MSCCL++ is in production of multiple AI services provided by Microsoft Azure, and has also been adopted by RCCL, the GPU collective communication library maintained by AMD. MSCCL++ is open source and available at https://github.com/microsoft/mscclpp . Our two years of experience with MSCCL++ suggests that its abstractions are robust, enabling support for new hardware features, such as multimem, within weeks of development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。