基于DMA的细粒度计算通信重叠的设计空间探索
Design Space Exploration of DMA based Finer-Grain Compute Communication Overlap
AI总结:
本文提出细粒度计算通信重叠方法FiCCO,通过深入分片粒度以下、利用DMA引擎卸载通信,实现更广泛网络拓扑下的性能优化,最高获得1.6倍加速。
摘要:
现代机器学习工作负载需要跨多个GPU分布训练和推理。然而,这些并行化技术常常遭受暴露的关键路径通信,通过计算通信重叠可能实现1.7倍的加速。先前的重叠方法利用ML模型状态和输入已经分片到GPU数量的事实,并在分片粒度上重叠计算和通信。然而,这种粗粒度重叠受到有限网络拓扑支持和次优数据流的限制。在这项工作中,我们转而支持更细粒度的计算通信重叠,称之为FiCCO。FiCCO比传统分片深入一层,为更广泛的网络拓扑解锁重叠,并实现更细粒度的数据流。我们表明,FiCCO打开了比仅分片级别更广泛的执行调度设计空间。为了遍历调度的设计空间,我们研究并表征了进行重叠时的性能低效问题,并将调度与相关的低效特征叠加。我们的表征揭示了分解和基于争用的减速是主要的性能限制因素,并将减速因子与静态计算/通信算子大小相关联。这有助于我们设计启发式方法(框架和运行时可以利用)来根据底层ML操作的性质选择定制的FiCCO调度。最后,为了进一步最小化操作重叠固有的争用低效,我们将通信卸载到GPU DMA引擎。我们评估了来自实际ML部署的几种场景,并证明我们提出的启发式驱动的定制调度可提供高达1.6倍的加速。此外,我们的启发式方法在81%的未见场景中提供了准确选择最优调度的指导。
英文摘要:
Modern ML workloads demand distributing training and inference across multiple GPUs. However, these parallelization techniques often suffer from exposed critical-path communication, leaving a potential 1.7x speedup on the table through compute-communication overlap. Prior overlapping methods harness the fact that ML model state and inputs are already sharded into the number of GPUs, and overlap the compute and communication at shard granularity. However, such coarse-grained overlap suffers from limited network topology support, and suboptimal dataflows. In this work, we instead make a case for finer-grain compute-communication overlap which we term FiCCO. FiCCO operates one level deeper than traditional sharding, and unlocks overlap for a wider set of network topologies and enables finer-grain dataflow. We show that FiCCO opens up a wider design space of execution schedules than possible at shard-level alone. To walk the design space of schedules, we study and characterize the performance inefficiencies on doing overlap and overlay the schedules with the associated inefficiency signatures. Our characterization reveals decomposition and contention based slowdowns to be the major performance limiters, and we correlate the slowdown factors with the static compute/communication operator sizes. This helps us design heuristics (that frameworks and runtimes can harness) to select bespoke FiCCO schedules based on the nature of underlying ML operations. Finally, to further minimize contention inefficiencies inherent with operation overlap, we offload communication to GPU DMA engines. We evaluate several scenarios from realistic ML deployments and demonstrate that our proposed heuristics driven bespoke schedules deliver up to 1.6x speedup. Further, our heuristics provide accurate guidance to pick the optimal schedule in 81% of unseen scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。