A Fast Algorithm for Aperiodic Linear Stencil Computation using Fast Fourier Transforms

Author:

Ahmad Zafar1ORCID,Chowdhury Rezaul1ORCID,Das Rathish2ORCID,Ganapathi Pramod1ORCID,Gregory Aaron1ORCID,Zhu Yimin1ORCID

Affiliation:

1. Stony Brook University, USA

2. University of Houston, USA

Abstract

Stencil computations are widely used to simulate the change of state of physical systems across a multidimensional grid over multiple timesteps. The state-of-the-art techniques in this area fall into three groups: cache-aware tiled looping algorithms, cache-oblivious divide-and-conquer trapezoidal algorithms, and Krylov subspace methods. In this article, we present two efficient parallel algorithms for performing linear stencil computations. Current direct solvers in this domain are computationally inefficient, and Krylov methods require manual labor and mathematical training. We solve these problems for linear stencils by using discrete Fourier transforms preconditioning on a Krylov method to achieve a direct solver that is both fast and general. Indeed, while all currently available algorithms for solving general linear stencils perform Θ( NT ) work, where N is the size of the spatial grid and T is the number of timesteps, our algorithms perform o ( NT ) work. To the best of our knowledge, we give the first algorithms that use fast Fourier transforms to compute final grid data by evolving the initial data for many timesteps at once. Our algorithms handle both periodic and aperiodic boundary conditions and achieve polynomially better performance bounds (i.e., computational complexity and parallel runtime) than all other existing solutions. Initial experimental results show that implementations of our algorithms that evolve grids of roughly 10 7 cells for around 10 5 timesteps run orders of magnitude faster than state-of-the-art implementations for periodic stencil problems, and 1.3× to 8.5× faster for aperiodic stencil problems. Code Repository: https://github.com/TEAlab/FFTStencils

Funder

NSF

Canada Research Chairs Programme and NSERC Discovery

Extreme Science and Engineering Discovery Environment

XSEDE

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Computer Science Applications,Hardware and Architecture,Modeling and Simulation,Software

Reference156 articles.

1. Intel MKL. Intel Math Kernel Library. Retrieved from https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html

2. LLVM MKL. LLVM Framework for High-Level Loop and Data-Locality Optimizations. Retrieved from https://polly.llvm.org/

3. Pluto. An Sutomatic Parallelizer and Locality Optimizer for Affine Loop Nests. Retrieved from http://pluto-compiler.sourceforge.net/

4. PoCC. The Polyhedral Compiler Collection. Retrieved from http://web.cs.ucla.edu/pouchet/software/pocc/

5. Stampede2. The Stampede2 Supercomputing Cluster. Retrieved from https://www.tacc.utexas.edu/systems/stampede2

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3