Skip to content

04 通信等待与 Overlap

页面目标

这一页负责把 profiling 的视角扩到多卡:谁在等、哪里没 overlap、为什么理论并行收益没有兑现。

本页的输出是通信归因:等待发生在哪个集体通信或阶段、是否存在可重叠空间,以及问题属于切分策略、拓扑还是 workload。不要把 GPU 利用率低直接等同于算力不足。

问题起点

多卡变慢时,常见误判是:

  • 以为算子本身慢
  • 以为 GPU 利用率低就是单卡问题

但真实情况往往是:

  • 同步等待高
  • overlap 没生效
  • communication hotspot 把收益吃掉了

关键观察点

  • communication wait
  • all-reduce / all-gather hotspots
  • pipeline bubble
  • overlap 是否存在

可视化入口

Communication Wait and Overlap Map

对应 Part

  • 46 Communication Profiling with NCCL
  • 79 Distributed Parallel Benchmark
  • 74 Profiling Driven End-to-End Optimization

本节要点

多卡 profiling 的关键不是“看更多 trace”,而是解释为什么通信和等待把理想收益吃掉了。

进入下一页

把通信归因和单卡基线一起带入 05 Benchmark 设计与回归验证,确认多卡策略是否真的改善了端到端结果。

Released under the MIT License.