LEDDS: 在GPU上进行便携式LBM-DEM模拟
LEDDS: Portable LBM-DEM simulations on GPUs
AI总结:
本文提出LEDDS框架,通过算法原语实现LBM-DEM模拟,展现高抽象层次下的高性能与可移植性,验证了其在颗粒流和流-粒子相互作用中的有效性。
摘要:
GPU程序的算法化表述提供了一种高阶替代方案,通过将计算表达为并行原语(如map、sort、reduce)的组合,而非手动编写GPU内核。本文展示了该范式可扩展至计算物理学中的复杂问题:颗粒流和流-粒子相互作用的模拟。LEDDS是开源框架,仅使用算法原语执行完全耦合的格子玻尔兹曼-离散元方法(LBM-DEM)模拟,并在单GPU平台高效运行。整个工作流,包括邻居搜索、碰撞检测和流-粒子耦合,均以可移植原语序列表达。尽管当前实现主要通过C++标准库算法,部分使用Thrust原语提升性能,但底层概念兼容任何提供丰富并行算法的HPC环境,适用于广泛现代GPU系统和未来加速器。LEDDS通过涵盖DEM和LBM-DEM配置的基准测试进行验证,包括球体和椭球碰撞、壁摩擦测试、单粒子沉降、杰弗里轨道和粒子流剪切流。尽管其高抽象层次,LEDDS的性能可与手动调优的CUDA求解器媲美,同时保持可移植性和代码清晰度。这些结果表明,高性能量率的LBM-DEM耦合可在不牺牲通用性和可读性的前提下实现,确立LEDDS为基于算法原语的便携多物理场框架的蓝图。
英文摘要:
Algorithmic formulations of GPU programs provide a high-level alternative to device-specific code by expressing computations as compositions of well-defined parallel primitives (e.g., map, sort, reduce), rather than through handcrafted GPU kernels. In this work, we demonstrate that this paradigm can be extended to complex and challenging problems in computational physics: the simulation of granular flows and fluid-particle interactions. LEDDS, our open-source framework, performs fully coupled Lattice Boltzmann -- Discrete Element Method (LBM-DEM) simulations using only algorithmic primitives, and runs efficiently on single-GPU platforms. The entire workflow, including neighbor search, collision detection, and fluid-particle coupling, is expressed as a sequence of portable primitives. While the current implementation illustrates these principles primarily through algorithms from the C++ Standard Library, with selective use of Thrust primitives for performance, the underlying concept is compatible with any HPC environment offering a rich set of parallel algorithms and is therefore applicable across a wide range of modern GPU systems and future accelerators. LEDDS is validated through benchmarks spanning both DEM and LBM-DEM configurations, including sphere and ellipsoid collisions, wall friction tests, single-particle settling, Jeffery's orbits, and particle-laden shear flows. Despite its high level of abstraction, LEDDS achieves performances comparable to those of hand-tuned CUDA solvers, while maintaining portability and code clarity. These results show that high-performance LBM-DEM coupling can be achieved without sacrificing generality or readability, establishing LEDDS as a blueprint for portable multiphysics frameworks based on algorithmic primitives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。