Working Paper Article Version 1 This version is not peer-reviewed

Data-Oriented Language Implementation of Lattice-Boltzmann Method for Dense and Sparse Geometries

Version 1 : Received: 30 August 2021 / Approved: 31 August 2021 / Online: 31 August 2021 (11:18:33 CEST)

How to cite: Tomczak, T. Data-Oriented Language Implementation of Lattice-Boltzmann Method for Dense and Sparse Geometries. Preprints 2021, 2021080561 Tomczak, T. Data-Oriented Language Implementation of Lattice-Boltzmann Method for Dense and Sparse Geometries. Preprints 2021, 2021080561

Abstract

The performance of lattice-Boltzmann solver implementations usually depends mainly on memory access patterns. Achieving high performance requires then complex code which handles careful data placement and ordering of memory transactions. In this work, we analyse the performance of an implementation based on a new approach called the data-oriented language, which allows the combining of complex memory access patterns with simple source code. As a use case, we present and provide the source code of a solver for D2Q9 lattice and show its performance on GTX Titan Xp GPU for dense and sparse geometries up to 4096 2 nodes. The obtained results are promising, around 1000 lines of code allowed us to achieve performance in the range of 0.6 to 0.7 of maximum theoretical memory bandwidth (over 2.5 and 5.0 GLUPS for double and single precision, respectively) for meshes of size above 1024 2 nodes, which is close to the current state-of-the-art. However, we also observed relatively high and sometimes difficult to predict overheads, especially for sparse data structures. The additional issue was also a rather long compilation, which extended the time of short simulations, and a lack of access to low-level optimisation mechanisms.

Keywords

parallel programming; CUDA; GPU; LBM

Subject

MATHEMATICS & COMPUTER SCIENCE, Other

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our diversity statement.

Leave a public comment
Send a private comment to the author(s)
Views 0
Downloads 0
Comments 0
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.