Skip to main content
QUICK REVIEW

[Paper Review] Neko: A Modern, Portable, and Scalable Framework for High-Fidelity Computational Fluid Dynamics

Niclas Jansson, Martin Karp|arXiv (Cornell University)|Jul 2, 2021
Parallel Computing and Optimization TechniquesComputer Science42 references10 citations
TL;DR

Neko is a modern, object-oriented framework for high-fidelity computational fluid dynamics (CFD) that enables portable, scalable, and high-performance simulations across diverse hardware, from CPUs to FPGAs. It achieves performance and accuracy comparable to NekRS and Nek5000 on modern CPUs while supporting multi-tier abstractions and a unified performance model for emerging architectures.

ABSTRACT

Recent trends and advancement in including more diverse and heterogeneous hardware in High-Performance Computing is challenging software developers in their pursuit for good performance and numerical stability. The well-known maxim "software outlives hardware" may no longer necessarily hold true, and developers are today forced to re-factor their codebases to leverage these powerful new systems. CFD is one of the many application domains affected. In this paper, we present Neko, a portable framework for high-order spectral element flow simulations. Unlike prior works, Neko adopts a modern object-oriented approach, allowing multi-tier abstractions of the solver stack and facilitating hardware backends ranging from general-purpose processors down to exotic vector processors and FPGAs. We show that Neko's performance and accuracy are comparable to NekRS, and thus on-par with Nek5000's successor on modern CPU machines. Furthermore, we develop a performance model, which we use to discuss challenges and opportunities for high-order solvers on emerging hardware.

Motivation & Objective

  • To address the growing challenge of hardware heterogeneity in high-performance computing for CFD by enabling portable and scalable simulations.
  • To overcome the limitations of legacy CFD codes that are tightly coupled to specific hardware and difficult to extend.
  • To design a modern, object-oriented framework that supports multi-tier abstractions and seamless porting across diverse backends, including CPUs, vector processors, and FPGAs.
  • To ensure numerical accuracy and performance comparable to production-grade solvers like NekRS and Nek5000 on modern hardware.
  • To develop a performance model that guides optimization and identifies opportunities for high-order solvers on emerging architectures.

Proposed method

  • Adopting a modern object-oriented design to enable multi-tier abstractions across the solver stack, decoupling algorithmic logic from hardware-specific implementations.
  • Implementing a unified software stack that supports heterogeneous backends, including general-purpose processors, vector units, and FPGAs, via abstraction layers.
  • Leveraging high-order spectral element methods for high-fidelity flow simulations with high-order accuracy and geometric flexibility.
  • Designing a performance model based on memory bandwidth, arithmetic intensity, and data locality to guide optimization across hardware platforms.
  • Using code generation and domain-specific abstractions to express weakly and strongly coupled PDE systems efficiently.
  • Ensuring numerical stability and accuracy through well-conditioned weak forms and conservative discretizations in the spectral element framework.

Experimental results

Research questions

  • RQ1How can a modern, portable CFD framework be architected to support diverse and heterogeneous hardware without sacrificing performance or accuracy?
  • RQ2To what extent can object-oriented abstractions in a CFD framework enable portability across CPUs, vector processors, and FPGAs?
  • RQ3What performance model best captures the behavior of high-order spectral element solvers on emerging hardware platforms?
  • RQ4How does the performance and accuracy of Neko compare to established solvers like NekRS and Nek5000 on modern CPU architectures?
  • RQ5What are the key bottlenecks and optimization opportunities for high-order CFD solvers on heterogeneous and accelerated systems?

Key findings

  • Neko achieves performance and accuracy comparable to NekRS and Nek5000 on modern CPU hardware, demonstrating its viability as a production-grade alternative.
  • The framework successfully supports multiple hardware backends, including CPUs, vector processors, and FPGAs, through a portable, abstraction-driven design.
  • The developed performance model effectively identifies key bottlenecks such as memory bandwidth and arithmetic intensity, guiding future optimization.
  • The object-oriented abstraction layer enables maintainable, extensible code while preserving low-level performance through efficient code generation and kernel specialization.
  • Neko's design allows for high-order accuracy and geometric flexibility, essential for high-fidelity CFD simulations.
  • The framework demonstrates that modern software engineering practices can be effectively combined with high-performance numerical methods to support evolving HPC workloads.

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.