...
首页> 外文期刊>IEEE Transactions on Parallel and Distributed Systems >An efficient code generation technique for tiled iteration spaces
【24h】

An efficient code generation technique for tiled iteration spaces

机译:平铺迭代空间的有效代码生成技术

获取原文
获取原文并翻译 | 示例

摘要

This paper presents a novel approach for the problem of generating tiled code for nested for-loops, transformed by a tiling transformation. Tiling or supernode transformation has been widely used to improve locality in multilevel memory hierarchies, as well as to efficiently execute loops onto parallel architectures. However, automatic code generation for tiled loops can be a very complex compiler work, especially when nonrectangular tile shapes and iteration space bounds are concerned. Our method considerably enhances previous work on rewriting tiled loops, by considering parallelepiped tiles and arbitrary iteration space shapes. In order to generate tiled code, we first enumerate all tiles containing points within the iteration space and, second, sweep all points within each tile. For the first subproblem, we refine upon previous results concerning the computation of new loop bounds of an iteration space that has been transformed by a nonunimodular transformation. For the second subproblem, we transform the initial parallelepiped tile into a rectangular one, in order to generate efficient code with the aid of a nonunimodular transformation matrix and its Hermite Normal Form (HNF). Experimental results show that the proposed method significantly accelerates the compilation process and generates much more efficient code.
机译:本文提出了一种通过平铺变换来生成嵌套for循环的平铺代码问题的新颖方法。切片或超节点转换已广泛用于改善多级内存层次结构中的局部性,以及有效地将循环执行到并行体系结构上。但是,针对平铺循环的自动代码生成可能是非常复杂的编译器工作,尤其是在涉及非矩形平铺形状和迭代空间边界时。通过考虑平行六面体切片和任意迭代空间形状,我们的方法极大地增强了以前重写切片循环的工作。为了生成切片代码,我们首先枚举迭代空间内包含点的所有切片,然后扫描每个切片内的所有点。对于第一个子问题,我们对先前的结果进行了细化,该结果与通过非单模变换进行了变换的迭代空间的新循环边界的计算有关。对于第二个子问题,我们将初始的平行六面体图块转换为矩形图块,以便借助非单模转换矩阵及其Hermite范式(HNF)生成有效的代码。实验结果表明,该方法大大加快了编译过程,并生成了效率更高的代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号