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.
Scalable Communication Endpoints for MPI+Threads Applications
混合MPI+线程编程作为传统的“MPI无处不在”模型的替代方案越来越突出,以更好地处理与其他节点上资源相比核数量不成比例的增加。这两个模型的当前实现代表了现代MPI实现中通信资源共享的两种极端情况。在MPI-everywhere模型中,每个MPI进程都有一组专用的通信资源(也称为端点),这对性能来说是理想的,但浪费资源。使用MPI+线程,当前的MPI实现为所有线程共享一个通信端点,这对于资源使用是理想的,但对性能是有害的。在本文中,我们探讨了MPI+线程环境中的性能和通信资源使用之间的权衡空间。我们首先演示了两种极端情况-一种是所有线程共享一个通信端点,另一种是每个线程都有自己的专用通信端点(类似于MPI无处不在模型),并展示了这两种情况下的效率低下。接下来,我们将对Mellanox InfiniBand环境中的不同级别的资源共享进行全面分析。利用从这种分析中吸取的经验教训,我们设计了一个改进的资源共享模型,以产生\emph{scalable communication endpoints},可以实现相同的性能,每个线程专用的通信资源,但只使用三分之一的资源。