Abstract
This paper describes a compiler transformation on stencil operators that automatically converts a standard stencil representation into an accumulation. We use this as an enabling transformation to optimize the stencil operators in the context of Geometric Multigrid (GMG), a widely used method to solve partial differential equations. GMG has four operators: the smoother, residual, restriction, and interpolation. Some of these require inter-process and inter-thread communication. This new optimization allows us, at each level of a GMG V-Cycle, to fuse all operators when recursing down the V-Cycle, and all smooth operations when returning up the V-Cycle. In turn, this fusion allows us to create a parallel wavefront across the fused operators that reduces communication. Thus, these combined optimizations reduce vertical (through the memory hierarchy) data movement and horizontal (inter-thread and inter-process) messages and synchronization.
Author supplied keywords
Cite
CITATION STYLE
Basu, P., Hall, M., Williams, S., Van Straalen, B., & Oliker, L. (2014). Converting stencils to accumulations for communication-avoiding optimization in geometric multigrid. In WOSC 2014 - Proceedings of the 2014 ACM SIGPLAN Workshop on Stencil Computations, Part of SPLASH 2014 (pp. 9–16). Association for Computing Machinery. https://doi.org/10.1145/2686745.2686749
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.