Skip to main content
QUICK REVIEW

[Paper Review] Accelerating the computation of FLAPW methods on heterogeneous architectures

Davor Davidović, Diego Fabregat‐Traver|arXiv (Cornell University)|Dec 19, 2017
Parallel Computing and Optimization TechniquesComputer Science20 references2 citations
TL;DR

This paper accelerates the FLEUR software's FLAPW electronic structure calculations by redesigning its Hamiltonian and overlap matrix computation using BLAS-3 kernels and hybrid CPU-GPU/Phi offloading. By implementing dynamic and static hybrid BLAS routines, the approach achieves over 70% of peak performance on heterogeneous systems and delivers a 5× speedup on JURECA supercomputing nodes by fully utilizing both CPUs and accelerators.

ABSTRACT

Legacy codes in computational science and engineering have been very successful in providing essential functionality to researchers. However, they are not capable of exploiting the massive parallelism provided by emerging heterogeneous architectures. The lack of portable performance and scalability puts them at high risk: either they evolve or they are doomed to disappear. One example of legacy code which would heavily benefit from a modern design is FLEUR, a software for electronic structure calculations. In previous work, the computational bottleneck of FLEUR was partially re-engineered to have a modular design that relies on standard building blocks, namely BLAS and LAPACK. In this paper, we demonstrate how the initial redesign enables the portability to heterogeneous architectures. More specifically, we study different approaches to port the code to architectures consisting of multi-core CPUs equipped with one or more coprocessors such as Nvidia GPUs and Intel Xeon Phis. Our final code attains over 70\% of the architectures' peak performance, and outperforms Nvidia's and Intel's libraries. Finally, on JURECA, the supercomputer where FLEUR is often executed, the code takes advantage of the full power of the computing nodes, attaining $5 imes$ speedup over the sole use of the CPUs.

Motivation & Objective

  • Modernize legacy FLEUR code to exploit heterogeneous architectures with massive parallelism.
  • Address performance portability and scalability limitations in legacy scientific codes like FLEUR.
  • Overcome the underutilization of GPUs and Intel Xeon Phis when using vendor-optimized BLAS libraries that target only one device type.
  • Develop hybrid BLAS implementations that efficiently utilize both CPUs and accelerators for high-performance electronic structure calculations.
  • Enable full utilization of modern supercomputing nodes like JURECA by integrating CPU and accelerator compute resources.

Proposed method

  • Reimplement the HSDLA algorithm using standardized BLAS-3 operations (e.g., zherk, zgemm) for improved modularity and portability.
  • Design two hybrid BLAS strategies: a dynamic approach using task queues and buffers, and a static approach using fixed matrix partitioning ratios.
  • Optimize memory access and data movement by reducing memory footprint and reorganizing computation flow in the HSDLA algorithm.
  • Port the optimized code to heterogeneous systems with multi-core CPUs and accelerators (NVIDIA GPUs and Intel Xeon Phis).
  • Leverage highly optimized libraries (cuBLASXT, MKL) and custom hybrid kernels to achieve high performance on JURECA supercomputer.
  • Evaluate performance across multiple test cases (TiO2, AuAg) and Kmax values using GFLOPS and speedup metrics relative to baseline and vendor libraries.

Experimental results

Research questions

  • RQ1To what extent can a BLAS-based redesign of a legacy scientific code like FLEUR enable performance portability across heterogeneous architectures?
  • RQ2What are the performance bottlenecks when offloading BLAS operations to accelerators using vendor-optimized libraries that do not support hybrid CPU-accelerator execution?
  • RQ3How do dynamic and static hybrid BLAS implementations compare in performance, portability, and tunability on GPU and Xeon Phi architectures?
  • RQ4Can custom hybrid kernels outperform vendor-optimized libraries (e.g., cuBLASXT, MKL) when both CPUs and accelerators are used simultaneously?
  • RQ5What is the achievable performance and scalability on modern supercomputing nodes like JURECA when fully utilizing both CPUs and multiple GPUs?

Key findings

  • The refined HSDLA implementation reduces memory footprint and computational cost through algorithmic optimization, enabling better performance on heterogeneous systems.
  • The dynamic hybrid BLAS approach achieves up to 1.19× speedup over cuBLASXT on 4 GPUs for zherk kernels, with 1.13× speedup for zgemmt kernels on the TiO2 test case.
  • The static hybrid BLAS approach achieves 1.19× speedup on zherk and 1.13× on zgemmt, with better tunability through matrix partitioning ratios.
  • On JURECA, the final implementation attains over 70% of the system’s peak performance and achieves a 5× speedup compared to using CPUs alone.
  • The hybrid implementations outperform both NVIDIA’s cuBLASXT and Intel’s MKL libraries by efficiently utilizing both CPUs and accelerators in tandem.
  • The code demonstrates strong scalability across multiple GPUs, with GFLOPS increasing from 1.5 TFLOPS (1 GPU) to 6 TFLOPS (4 GPUs) on the AuAg test case.

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.