arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1707.09414cs.DC
收藏

密集GPU InfiniBand集群上深度学习工作负载的优化广播:MPI还是NCCL?

Optimized Broadcast for Deep Learning Workloads on Dense-GPU InfiniBand Clusters: MPI or NCCL?

Ammar Ahmad Awan, Ching-Hsiang Chu, Hari Subramoni, Dhabaleswar K. Panda

摘要:

密集多GPU系统最近在HPC领域获得了很多关注。传统上,MPI运行时主要是为具有大量节点的集群设计的。然而,随着MPI+CUDA应用程序和CUDA-Aware MPI运行时(如MVAPICH 2和OpenMPI)的出现,为这种密集的多GPU节点解决有效的通信方案变得非常重要。这与Caffe和Microsoft CNTK等深度学习框架带来的新应用程序工作负载相结合,由于训练阶段GPU缓冲区的消息通信量非常大,因此会带来额外的设计限制。在这种情况下,已经提出了像NVIDIA NCCL这样的专用库,用于在密集GPU系统上进行基于GPU的集体通信。在本文中,我们提出了一种用于MPI_Bcast集体操作的流水线链(环)设计,以及MVAPICH 2-GDR中的增强集体调优框架,该框架可以实现高效的节点内/节点间多GPU通信。我们为建议的MPI_Bcast方案提供了深入的性能前景,并对NVIDIA NCCL Broadcast和基于NCCL的MPI_Bcast进行了比较分析。与基于NCCL的解决方案相比,MVAPICH 2-GDR的拟议设计分别使节点内和节点间广播延迟提高了14倍和16.6倍。此外,所提出的设计提供了高达7%的改进,基于NCCL的解决方案的数据并行训练的VGG网络上的128个GPU使用Microsoft CNTK。

英文摘要:

Dense Multi-GPU systems have recently gained a lot of attention in the HPC arena. Traditionally, MPI runtimes have been primarily designed for clusters with a large number of nodes. However, with the advent of MPI+CUDA applications and CUDA-Aware MPI runtimes like MVAPICH2 and OpenMPI, it has become important to address efficient communication schemes for such dense Multi-GPU nodes. This coupled with new application workloads brought forward by Deep Learning frameworks like Caffe and Microsoft CNTK pose additional design constraints due to very large message communication of GPU buffers during the training phase. In this context, special-purpose libraries like NVIDIA NCCL have been proposed for GPU-based collective communication on dense GPU systems. In this paper, we propose a pipelined chain (ring) design for the MPI_Bcast collective operation along with an enhanced collective tuning framework in MVAPICH2-GDR that enables efficient intra-/inter-node multi-GPU communication. We present an in-depth performance landscape for the proposed MPI_Bcast schemes along with a comparative analysis of NVIDIA NCCL Broadcast and NCCL-based MPI_Bcast. The proposed designs for MVAPICH2-GDR enable up to 14X and 16.6X improvement, compared to NCCL-based solutions, for intra- and inter-node broadcast latency, respectively. In addition, the proposed designs provide up to 7% improvement over NCCL-based solutions for data parallel training of the VGG network on 128 GPUs using Microsoft CNTK.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑