J4 ›› 2013, Vol. 51 ›› Issue (02): 250-256.

• 计算机科学 • 上一篇    下一篇

地下多相流动数值模拟的GPU并行优化

魏晓辉1, 朱彤1, 李洪亮1, 李维山1, 许天福2   

  1. 1. 吉林大学 计算机科学与技术学院, 长春 130012|2. 吉林大学 环境与资源学院, 长春 130012
  • 收稿日期:2012-03-05 出版日期:2013-03-26 发布日期:2013-03-27
  • 通讯作者: 魏晓辉 E-mail:weixh@jlu.edu.cn

GPU Accelerated Numerical Simulation forUnderground Multiphase Flow

WEI Xiaohui1, ZHU Tong1, LI Hongliang1, LI Weishan1, XU Tianfu2   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. College of Environment and Resources, Jilin University, Changchun 130012, China
  • Received:2012-03-05 Online:2013-03-26 Published:2013-03-27
  • Contact: WEI Xiaohui E-mail:weixh@jlu.edu.cn

摘要:

针对减少模拟计算时间及提高问题求解规模问题, 基于设备编程架构(CUDA)将使用预处理的稳定双共轭梯度法在图形处理器(GPU)上实现, 并将其整合到TOUGHREACT软件中, 在GPU平台实现了对地下多相流动数值模拟问题的并行求解, 并给出了稳定共轭梯度算法中最耗时的两个操作稀疏矩阵向量乘积和向量内积计算的GPU平台实现及优化方法. 实验结果表明, GPU的使用对求解过程有良好的加速效果, 针对不同的网格规模进行多相流模拟实验, 达到了1.7~3.4倍的加速比.

关键词: GPU通用计算, 并行计算, 多相流模拟

Abstract:

In order to decrease the simulating time and getting more detailed simulating results, this article implements a parallel biconjugate gradient stabilized method on GPU. The solver was integrated to TOUGHREACT and used in the numerical simulation of underground multiphase flow on GPU. CUDA implementing methods for sparse matrixvector multiplication and vector innerproduct are given in this paper. The experimental results show that GPU can speed up the process of solving the underground multiphase flow simulation. On different scales of simulation grids, the speed was increased by 1.7—3.4 times.

Key words: GPGPU, parallel computing, multiphase flow simulation

中图分类号: 

  • TP316.4