首页> 外文会议>International Conference on Parallel and Distributed Computing, Applications, and Technologies >Memory Access Optimization of High-Order CFD Stencil Computations on GPU
【24h】

Memory Access Optimization of High-Order CFD Stencil Computations on GPU

机译:GPU上高阶CFD模板计算的内存访问优化

获取原文

摘要

Stencils computations are a class of computations commonly found in scientific and engineering applications. They have relatively lower arithmetic intensity. Therefore, their performance is greatly affected by memory access. This paper studies the issue of memory access optimization for the key stencil computations of a high-order CFD program on the NVidia GPU. Two methods are used to optimize the performance. First, we use registers to cache the data used by the stencil computations in the kernel. We use the CUDA warp shuffle functions to exchange data between neighboring grid points, and adjust the thread computation granularity to increase the data reuse. Second, we use the shared memory to buffer the grid data used by the stencil computations in the kernel, and utilize loop tiling to reduce redundant accesses to the global memory. Performance evaluation is done on an NVidia Tesla K80 GPU. The results show that compared to the original implementation that only uses the global memory, the optimized implementation that utilizes the registers achieves a maximum speedup of 2.59 and 2.79 relatively for 15M and 60M grids, and the optimized implementation that utilizes the shared memory achieves a maximum speedup of 3.51 and 3.36 relatively for 15M and 60M grids.
机译:模板计算是科学和工程应用中常见的一类计算。它们具有相对较低的算术强度。因此,它们的性能受到内存访问的影响很大。本文研究了NVIDIA GPU上的高阶CFD程序的密钥模板计算的内存访问优化问题。两种方法用于优化性能。首先,我们使用寄存器缓存模板计算中的数据中内核中使用的数据。我们使用CUDA Warp Shuffle功能在相邻网格点之间交换数据,并调整线程计算粒度以增加数据重用。其次,我们使用共享内存来缓冲内核中的模板计算使用的网格数据,并利用循环划线以减少到全局存储器的冗余访问。在NVIDIA Tesla K80 GPU上进行了绩效评估。结果表明,与仅使用全局内存的原始实现相比,利用寄存器的优化实现实现了15M和60M网格的最大加速度为2.59和2.79,以及利用共享内存的优化实现实现最大值相对于15米和60米的网格加速3.51和3.36。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号