NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Libra: an automated code generation and tuning framework for register-limited stencils on GPUs

Mengyao Jin, Haohuan Fu, Zihong Lv, Guangwen YangConf. Computing Frontiers 2016

Abstract

Stencils account for a significant part in many scientific computing applications. Besides simple stencils which can be completed with a few arithmetic operations, there are also many register-limited stencils with hundreds or thousands of variables and operations. The massive registers required by these stencils largely limit the parallelism of the programs on current many-core architectures, and consequently degrade the overall performance. Based on the register usage, which is the major constraining factor for most register-limited stencils, we propose a DDG (data-dependency-graph) oriented code transformation approach to improve the performance of these stencils. This approach analyzes, reorders and transforms the original program on GPUs, and further explores for the best tradeoff between the computation amount and the parallelism degree. Based on our graphoriented code transformation approach, we further design and implement an automated code generation and tuning framework called Libra, to improve the productivity and performance simultaneously. We apply Libra to 5 widely used stencils, and experiment results show that these stencils achieve a speedup of 1.12~2.16X when compared with the original fairly-optimized implementations.
BibTeX
@inproceedings{jin2016libra,
  author = {Mengyao Jin and Haohuan Fu and Zihong Lv and Guangwen Yang},
  title = {{Libra: an automated code generation and tuning framework for register-limited stencils on GPUs}},
  booktitle = {Conf. Computing Frontiers},
  year = {2016},
  url = {https://openreview.net/forum?id=pEoN2jyfwV6F},
}

Loading related content...

Figure