• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (8): 53-58.

• 论文 • 上一篇    下一篇

三维Navier-Stokes方程的差分-谱方法混合法在GPU上的实现与优化

徐莹,徐磊   

  1. (上海超级计算中心,上海 201203)
  • 收稿日期:2012-04-28 修回日期:2012-06-11 出版日期:2012-08-25 发布日期:2012-08-25
  • 基金资助:

    国家863计划资助项目(2012AA01A308);自然科学基金青年基金资助项目(10902063)

Implementation and Optimization of the Spectralfinite Difference Hybrid Scheme for 3D NavierStokes Equations on GPU

XU Ying,XU Lei   

  1. (Shanghai Supercomputing Center,Shanghai 201203,China)
  • Received:2012-04-28 Revised:2012-06-11 Online:2012-08-25 Published:2012-08-25

摘要:

差分-谱方法通常在槽道湍流的直接数值模拟中使用,本文主要研究差分谱方法在单GPU卡上的实现。由于GPU的硬件发展十分迅速,不同的GPU硬件对双精度计算的支持有所不同,本文首先验证GPU上数值计算的精度,用差分谱混合法求解标量扩散方程,并将GPU和CPU上获取的数值结果与解析解进行对比,以确定GPU上数值算法实现的精确度。标量扩散方程在Nvidia S2050单GPU卡上求解,获得接近20倍的加速比,三维不可压缩NavierStokes方程达到了25倍的加速比。

关键词: 异构平台, GPGPU, 并行算法, 不可压缩NavierStokes方程, 差分谱方法混合法

Abstract:

The approach of accelerating the applications with GPUs already delivers impressive computational performance compared to the traditional CPU.The hardware architecture of GPU is a significant departure from CPUs,hence the redesign and validation of the numerical algorithm are required.The spectralfinitedifference scheme is usually used in the direction, and the  numerical simulation (DNS) of turbulent channel flows is studied.In order to validate the numerical accuracy,the scalar diffusion equation is first solved with this scheme,and the results from GPU and CPU are validated with the analytical solution.The performance study of the scalar diffusion equation shows at least 20X speedup.For the 3D full NavierStokes equation,the performance on GPU shows a 24X speedup.

Key words: heterogeneous platform;GPGPU;parallel algorithm;incompressible NavierStokes;spectralfinite difference hybrid scheme