Skip to main content
QUICK REVIEW

[Paper Review] Conjugate gradient solvers on Intel Xeon Phi and NVIDIA GPUs

Olaf Kaczmarek, Christian Schmidt|arXiv (Cornell University)|Nov 17, 2014
Parallel Computing and Optimization TechniquesComputer Science3 references6 citations
TL;DR

This paper presents a highly optimized conjugate gradient solver for lattice QCD simulations on Intel Xeon Phi and NVIDIA Tesla GPUs, leveraging multiple right-hand side inversion and site fusion to boost arithmetic intensity and memory bandwidth utilization. It achieves over 300 GFlop/s on both architectures, more than doubling inversion performance by reducing memory bottlenecks through parallelization and software prefetching techniques.

ABSTRACT

Lattice Quantum Chromodynamics simulations typically spend most of the runtime in inversions of the Fermion Matrix. This part is therefore frequently optimized for various HPC architectures. Here we compare the performance of the Intel Xeon Phi to current Kepler-based NVIDIA Tesla GPUs running a conjugate gradient solver. By exposing more parallelism to the accelerator through inverting multiple vectors at the same time, we obtain a performance greater than 300 GFlop/s on both architectures. This more than doubles the performance of the inversions. We also give a short overview of the Knights Corner architecture, discuss some details of the implementation and the effort required to obtain the achieved performance.

Motivation & Objective

  • To improve the performance of conjugate gradient solvers used in lattice QCD simulations, which are dominated by Fermion matrix inversions.
  • To evaluate and optimize the performance of these solvers on Intel Xeon Phi and NVIDIA Kepler-based GPUs.
  • To reduce memory bandwidth bottlenecks by increasing arithmetic intensity through simultaneous inversion of multiple right-hand sides.
  • To implement and benchmark software prefetching and memory access optimizations for irregular memory access patterns in the Dslash kernel.
  • To compare the relative performance of Xeon Phi and GPU accelerators in the context of high-performance lattice QCD computations.

Proposed method

  • The conjugate gradient solver is optimized by inverting multiple right-hand side vectors simultaneously, increasing arithmetic intensity from 0.73 to 2.08 flop/byte when using 8 right-hand sides.
  • Site fusion is applied using an 8-fold scheme that combines 8 lattice sites of the same parity in the x-direction, reducing register pressure and improving performance by 55% compared to 16-fold fusion.
  • A 'Struct of Arrays' (SoA) data layout is used for 16 vectors and matrices, enabling vectorized operations across multiple right-hand sides using AVX-512 instructions on the Xeon Phi.
  • Software prefetching is inserted using intrinsics to improve data locality, especially for indirect memory accesses in the Dslash kernel, with temporal hints for vectors and non-temporal hints for gauge links.
  • Memory layout is restructured to store all right-hand sides contiguously per lattice site to reduce TLB pressure and improve cache efficiency.
  • The implementation uses Intel Compiler 14.0 and MPSS 3.3 for Xeon Phi, and CUDA 6.0 for NVIDIA GPUs, with ECC enabled and memory bandwidth as the primary performance bottleneck.

Experimental results

Research questions

  • RQ1How does simultaneous inversion of multiple right-hand sides affect the arithmetic intensity and performance of conjugate gradient solvers on accelerators?
  • RQ2What is the performance gain of using site fusion and SoA data layout on Intel Xeon Phi for lattice QCD Dslash operations?
  • RQ3To what extent can software prefetching improve performance on the Xeon Phi when hardware prefetching fails due to complex access patterns?
  • RQ4How do the performance characteristics of Xeon Phi and NVIDIA GPUs compare for lattice QCD conjugate gradient solvers under identical workloads?
  • RQ5What is the impact of memory bandwidth limitations on the achievable performance of Fermion matrix inversions in lattice QCD simulations?

Key findings

  • The conjugate gradient solver achieves over 300 GFlop/s on both Intel Xeon Phi 5110P and NVIDIA K40 GPUs, representing more than a doubling of performance compared to single-right-hand-side inversion.
  • Using 4 right-hand sides increases arithmetic intensity by a factor of 2.16, resulting in a 2.05× speedup in the full conjugate gradient solver, achieving 95% of the expected performance gain.
  • The 8-fold site fusion method reduces register pressure by 50% compared to 16-fold fusion, resulting in a 55% performance improvement at 4 right-hand sides on the Xeon Phi.
  • Software prefetching improves performance by a factor of 2× on the Xeon Phi by mitigating the failure of hardware prefetching on complex access patterns.
  • The 7120P Xeon Phi outperforms the K20 GPU by 1.2×, while the K40 GPU is 1.4× faster than the K20, with performance ranking: K40 > 7120P > 5110P > K20.
  • Contiguous storage of all right-hand sides per lattice site improves performance by 15% for large lattices compared to separate arrays, due to reduced TLB pressure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.