Cross-Platform GPU-Based Implementation of Lattice Boltzmann Method Solver Using ArrayFire Library

被引:5
|
作者
Takac, Michal [1 ]
Petras, Ivo [1 ]
机构
[1] Tech Univ Kosice, Fac BERG, Nemcovej 3, Kosice 04200, Slovakia
关键词
lattice Boltzmann method (LBM); computational fluid dynamics (CFD); parallel computing; graphics processing unit (GPU) computing; ArrayFire library; numerical analysis; FLOW; MODEL;
D O I
10.3390/math9151793
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
This paper deals with the design and implementation of cross-platform, D2Q9-BGK and D3Q27-MRT, lattice Boltzmann method solver for 2D and 3D flows developed with ArrayFire library for high-performance computing. The solver leverages ArrayFire's just-in-time compilation engine for compiling high-level code into optimized kernels for both CUDA and OpenCL GPU backends. We also provide C++ and Rust implementations and show that it is possible to produce fast cross-platform lattice Boltzmann method simulations with minimal code, effectively less than 90 lines of code. An illustrative benchmarks (lid-driven cavity and Karman vortex street) for single and double precision floating-point simulations on 4 different GPUs are provided. Data Set License: MIT
引用
收藏
页数:18
相关论文
共 50 条
  • [1] Lattice boltzmann based PDE solver on the GPU
    Zhao, Ye
    [J]. VISUAL COMPUTER, 2008, 24 (05): : 323 - 333
  • [2] Lattice Boltzmann based PDE solver on the GPU
    Ye Zhao
    [J]. The Visual Computer, 2008, 24 : 323 - 333
  • [3] Modelling urban airflow and natural ventilation using a GPU-based lattice-Boltzmann method
    King, Marco-Felipe
    Khan, Amirul
    Delbosc, Nicolas
    Gough, Hannah L.
    Halios, Christos
    Barlow, Janet F.
    Noakes, Catherine J.
    [J]. BUILDING AND ENVIRONMENT, 2017, 125 : 273 - 284
  • [4] GPU-based cross-platform Monte Carlo proton dose calculation engine in the framework of Taichi
    Wei-Guang Li
    Cheng Chang
    Yao Qin
    Zi-Lu Wang
    Kai-Wen Li
    Li-Sheng Geng
    Hao Wu
    [J]. Nuclear Science and Techniques, 2023, 34 (05) : 156 - 166
  • [5] GPU-based cross-platform Monte Carlo proton dose calculation engine in the framework of Taichi
    Li, Wei-Guang
    Chang, Cheng
    Qin, Yao
    Wang, Zi-Lu
    Li, Kai-Wen
    Geng, Li-Sheng
    Wu, Hao
    [J]. NUCLEAR SCIENCE AND TECHNIQUES, 2023, 34 (05)
  • [6] GPU-based cross-platform Monte Carlo proton dose calculation engine in the framework of Taichi
    Wei-Guang Li
    Cheng Chang
    Yao Qin
    Zi-Lu Wang
    Kai-Wen Li
    Li-Sheng Geng
    Hao Wu
    [J]. Nuclear Science and Techniques, 2023, 34
  • [7] A modular cross-platform GPU-based approach for flexible 3D video playback
    Olsson, Roger
    Andersson, Hakan
    Sjostrom, Marten
    [J]. STEREOSCOPIC DISPLAYS AND APPLICATIONS XXII, 2011, 7863
  • [8] Multi-GPU implementation of a hybrid thermal lattice Boltzmann solver using the TheLMA framework
    Obrecht, Christian
    Kuznik, Frederic
    Tourancheau, Bernard
    Roux, Jean-Jacques
    [J]. COMPUTERS & FLUIDS, 2013, 80 : 269 - 275
  • [9] Multi-GPU implementation of the lattice Boltzmann method
    Obrecht, Christian
    Kuznik, Frederic
    Tourancheau, Bernard
    Roux, Jean-Jacques
    [J]. COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2013, 65 (02) : 252 - 261
  • [10] Implementation of a direct-addressing based lattice Boltzmann GPU solver for multiphase flow in porous media
    Yang, Guang
    Chen, Yu
    Chen, Simeng
    Wang, Moran
    [J]. COMPUTER PHYSICS COMMUNICATIONS, 2023, 291