[Paper Review] Accelerating HPC codes on Intel(R) Omni-Path Architecture networks: From particle physics to Machine Learning
This paper presents optimization techniques to achieve near-wirespeed performance on Intel Omni-Path Architecture clusters using Xeon Phi 72xx processors, focusing on two workloads: halo exchanges in structured grid PDE solvers and gradient reduction in synchronous stochastic gradient descent. By leveraging 2MB huge pages, multiple PSM2 endpoints, and Intel MPI 2019's thread concurrency, the authors achieve a 10× speedup in a Baidu Research reduction kernel, demonstrating significant performance gains in HPC and machine learning workloads.
We discuss practical methods to ensure near wirespeed performance from clusters with either one or two Intel(R) Omni-Path host fabric interfaces (HFI) per node, and Intel(R) Xeon Phi(TM) 72xx (Knight's Landing) processors, and using the Linux operating system. The study evaluates the performance improvements achievable and the required programming approaches in two distinct example problems: firstly in Cartesian communicator halo exchange problems, appropriate for structured grid PDE solvers that arise in quantum chromodynamics simulations of particle physics, and secondly in gradient reduction appropriate to synchronous stochastic gradient descent for machine learning. As an example, we accelerate a published Baidu Research reduction code and obtain a factor of ten speedup over the original code using the techniques discussed in this paper. This displays how a factor of ten speedup in strongly scaled distributed machine learning could be achieved when synchronous stochastic gradient descent is massively parallelised with a fixed mini-batch size. We find a significant improvement in performance robustness when memory is obtained using carefully allocated 2MB huge virtual memory pages, implying that either non-standard allocation routines should be used for communication buffers. These can be accessed via a LD\_PRELOAD override in the manner suggested by libhugetlbfs. We make use of a the Intel(R) MPI 2019 library Technology Preview and underlying software to enable thread concurrency throughout the communication software stake via multiple PSM2 endpoints per process and use of multiple independent MPI communicators. When using a single MPI process per node, we find that this greatly accelerates delivered bandwidth in many core Intel(R) Xeon Phi processors.
Motivation & Objective
- To optimize communication performance on clusters with Intel Omni-Path Architecture and Xeon Phi 72xx processors for HPC and machine learning workloads.
- To evaluate the impact of memory allocation strategies, specifically 2MB huge pages, on communication buffer performance.
- To enable thread concurrency in MPI communication stacks via multiple PSM2 endpoints and independent communicators.
- To demonstrate performance improvements in two representative HPC workloads: halo exchange in structured grid solvers and gradient reduction in synchronous SGD.
- To show that careful memory management and communication stack tuning can yield near-wirespeed performance on multi-HFI systems.
Proposed method
- Use of 2MB huge virtual memory pages for communication buffers via LD_PRELOAD override with libhugetlbfs to reduce memory latency and improve bandwidth.
- Employment of Intel MPI 2019 Technology Preview with multiple PSM2 endpoints per process to enable thread-level concurrency in communication.
- Utilization of multiple independent MPI communicators to isolate and accelerate communication operations in multi-core environments.
- Optimization of communication patterns in Cartesian communicator halo exchanges for structured grid PDE solvers used in quantum chromodynamics simulations.
- Application of the same optimization techniques to gradient reduction kernels in synchronous stochastic gradient descent for machine learning.
- Benchmarking of performance improvements on systems with one or two Omni-Path HFI per node using single MPI process per node.
Experimental results
Research questions
- RQ1How can communication performance be maximized on clusters with Intel Omni-Path Architecture and Xeon Phi 72xx processors?
- RQ2To what extent do 2MB huge pages improve performance in MPI communication buffers?
- RQ3Can multiple PSM2 endpoints per process significantly enhance delivered bandwidth in multi-core environments?
- RQ4What performance gains are achievable in halo exchange and gradient reduction workloads using the proposed optimizations?
- RQ5How does the combination of memory allocation and MPI thread concurrency affect end-to-end application performance?
Key findings
- A 10× speedup was achieved in a published Baidu Research gradient reduction kernel by applying the proposed optimization techniques.
- The use of 2MB huge pages significantly improved performance robustness, indicating that non-standard memory allocation is essential for high-performance communication buffers.
- Multiple PSM2 endpoints per process enabled effective thread concurrency, greatly accelerating delivered bandwidth on multi-core Xeon Phi processors.
- The performance improvements were most pronounced when using a single MPI process per node, highlighting the importance of process-to-HFI mapping.
- The combination of huge pages and multiple MPI communicators led to near-wirespeed performance in both halo exchange and gradient reduction workloads.
- The optimizations demonstrated substantial gains in strongly scaled distributed machine learning with fixed mini-batch size, enabling faster convergence.
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.