[Paper Review] Optimized Broadcast for Deep Learning Workloads on Dense-GPU InfiniBand Clusters: MPI or NCCL?
This paper proposes a pipelined ring-based MPI_Bcast design with enhanced tuning in MVAPICH2-GDR to optimize deep learning workloads on dense-GPU InfiniBand clusters. It achieves up to 14X and 16.6X lower latency than NCCL for intra- and inter-node GPU broadcast, respectively, and delivers up to 7% faster training for VGG on 128 GPUs using Microsoft CNTK, demonstrating that optimized MPI can outperform specialized libraries like NCCL.
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.
Motivation & Objective
- To address the performance gap between general-purpose MPI runtimes and specialized libraries like NCCL in large-scale deep learning workloads.
- To optimize MPI_Bcast for intra- and inter-node GPU communication in dense-GPU InfiniBand clusters, particularly for large message sizes common in DNN training.
- To evaluate whether CUDA-aware MPI runtimes like MVAPICH2-GDR can be enhanced to match or exceed NCCL performance for broadcast operations.
- To provide a holistic performance comparison between NCCL, NCCL-integrated MPI, and optimized MPI_Bcast using micro-benchmarks and real-world DNN training (e.g., VGG).
- To demonstrate that efficient MPI runtime design can eliminate the need for external libraries like NCCL in data-parallel DNN training.
Proposed method
- Design a pipelined chain (ring) algorithm for MPI_Bcast to reduce latency and improve scalability in multi-GPU nodes.
- Integrate an enhanced collective tuning framework in MVAPICH2-GDR to dynamically adapt to varying message sizes and system topologies.
- Leverage InfiniBand hardware features such as RDMA and hardware multicast to accelerate GPU-to-GPU data movement.
- Optimize data transfer patterns using GPU memory registration and peer-to-peer access to minimize CPU involvement and reduce latency.
- Implement and evaluate the proposed MPI_Bcast in both micro-benchmarks and real-world training using Microsoft CNTK and the VGG network.
- Compare performance against NCCL-based broadcast and NCCL-integrated MPI_Bcast across intra-node and inter-node communication scenarios.
Experimental results
Research questions
- RQ1Can a pipelined ring-based MPI_Bcast design outperform NCCL for GPU broadcast in dense-GPU clusters?
- RQ2What are the performance bottlenecks in using standard MPI runtimes for large-message communication in deep learning workloads?
- RQ3How does the performance of optimized MPI_Bcast compare to NCCL across different message sizes and system configurations?
- RQ4Can CUDA-aware MPI runtimes be tuned to surpass the performance of specialized libraries like NCCL for DNN training workloads?
- RQ5What are the application-level benefits of using optimized MPI_Bcast in real deep learning frameworks like Microsoft CNTK?
Key findings
- The proposed MVAPICH2-GDR-optimized MPI_Bcast achieves up to 14X lower latency than NCCL for intra-node GPU broadcast.
- For inter-node broadcast, the proposed design reduces latency by up to 16.6X compared to NCCL-based solutions.
- In application-level training of the VGG network on 128 GPUs using Microsoft CNTK, the optimized MPI_Bcast reduces training time by up to 7% compared to NCCL-integrated MPI.
- The performance improvement is most significant for small and medium message sizes, where NCCL shows limitations due to its design constraints.
- The optimized MPI_Bcast maintains comparable performance to NCCL for large messages, demonstrating its robustness across the full message size spectrum.
- The results show that with proper tuning, general-purpose MPI runtimes can match or exceed the performance of specialized libraries like NCCL for deep learning communication workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.