We found a match
Your institution may have access to this item. Find your institution then sign in to continue.
- Title
Code Refinement of Stencil Codes.
- Authors
Köster, Marcel; Leißa, Roland; Hack, Sebastian; Membarth, Richard; Slusallek, Philipp
- Abstract
A straightforward implementation of an algorithm in a general-purpose programming language does usually not deliver peak performance: Compilers often fail to automatically tune the code for certain hardware peculiarities like memory hierarchy or vector execution units. Manually tuning the code is firstly error-prone as well as time-consuming and secondly taints the code by exposing those peculiarities to the implementation. A popular method to avoid these problems is to implement the algorithm in a Domain-Specific Language (DSL). A DSL compiler can then automatically tune the code for the target platform. In this article we show how to embed a DSL for stencil codes in another language. In contrast to prior approaches we only use a single language for this task which offers explicit control over code refinement. This is used to specialize stencils for particular scenarios. Our results show that our specialized programs achieve competitive performance compared to hand-tuned CUDA programs while maintaining a convenient coding experience.
- Subjects
AUTOMATIC differentiation; COMPILERS (Computer programs); DOMAIN-specific programming languages; PROGRAMMING languages; COMPUTER software
- Publication
Parallel Processing Letters, 2014, Vol 24, Issue 3, p-1
- ISSN
0129-6264
- Publication type
Article
- DOI
10.1142/S0129626414410035