High Performance Stencil Code Generation with LIFT

Hagedorn, B., Stolzfus, L., Steuwer, M. , Gorlatch, S. and Dubach, C. (2018) High Performance Stencil Code Generation with LIFT. In: International Symposium on Code Generation and Optimization (CGO'18), Vienna, Austria, 24-28 Feb 2018, pp. 100-112. ISBN 9781450356176 (doi:10.1145/3168824)

[img]
Preview
Text
153441.pdf - Accepted Version

2MB

Abstract

Stencil computations are widely used from physical simulations to machine-learning. They are embarrassingly parallel and perfectly fit modern hardware such as Graphic Processing Units. Although stencil computations have been extensively studied, optimizing them for increasingly diverse hardware remains challenging. Domain Specific Languages (DSLs) have raised the programming abstraction and offer good performance. However, this places the burden on DSL implementers who have to write almost full-fledged parallelizing compilers and optimizers. Lift has recently emerged as a promising approach to achieve performance portability and is based on a small set of reusable parallel primitives that DSL or library writers can build upon. Lift’s key novelty is in its encoding of optimizations as a system of extensible rewrite rules which are used to explore the optimization space. However, Lift has mostly focused on linear algebra operations and it remains to be seen whether this approach is applicable for other domains. This paper demonstrates how complex multidimensional stencil code and optimizations such as tiling are expressible using compositions of simple 1D Lift primitives. By leveraging existing Lift primitives and optimizations, we only require the addition of two primitives and one rewrite rule to do so. Our results show that this approach outperforms existing compiler approaches and hand-tuned codes.

Item Type:Conference Proceedings
Status:Published
Refereed:Yes
Glasgow Author(s) Enlighten ID:Steuwer, Dr Michel
Authors: Hagedorn, B., Stolzfus, L., Steuwer, M., Gorlatch, S., and Dubach, C.
College/School:College of Science and Engineering > School of Computing Science
Journal Name:International Symposium on Code Generation and Optimization
ISBN:9781450356176
Copyright Holders:Copyright © 2018 The Authors
Publisher Policy:Reproduced in accordance with the copyright policy of the publisher
Related URLs:

University Staff: Request a correction | Enlighten Editors: Update this record