桂林电子科技大学学报2024,Vol.44Issue(6):579-584,6.DOI:10.16725/j.1673-808X.2021452
基于面向对象对CUDA架构的LBM计算程序优化
Optimization of LBM computing program based on object-oriented CUDA architecture
摘要
Abstract
Lattice Boltzmann method(LBM)is a novel and promising computational fluid dynamics method,which has natural ad-vantages.From the perspective of algorithm,the iterative process can be divided into parallel programs with multiple subproblems.In order to obtain extremely fast data processing speed,the iterative process is computed by high-performance graphics processing unit(GPU).At the same time,the efficient implementation of GPU-based LBM method has been widely reported,so it is very suit-able for high performance image processor(GPU)calculation to obtain extremely fast data processing speed.The program environ-ment is C++as the programming language,the CUDA program structure is optimized by object-oriented thinking,the coupling of the program is reduced,and the sustainable development of the program is endowed.Poiseuille flow model is used to verify the sta-bility and accuracy of the optimization program.During the program running,CUDA kernel functions are called to deal with the col-lision within the model,migration flow and iterative process of calculating macro quantities.Meanwhile,shared memory is used to store GPU runtime data to improve computing efficiency.Analysis of the data show that computing speeds are up to 70 times faster than those of the central processing unit(CPU),thanks to the GPU's high-performance parallel computing capabilities.关键词
晶格玻尔兹曼方法/面向对象/Poiseuille flow模型/CUDAKey words
lattice Boltzmann method(LBM)/object-oriented/Poiseuille flow model/CUDA分类
数理科学引用本文复制引用
韦华健,张乾毅,张静静,李华兵..基于面向对象对CUDA架构的LBM计算程序优化[J].桂林电子科技大学学报,2024,44(6):579-584,6.基金项目
国家自然科学基金(11362005) (11362005)