首页> 外文会议>International Workshop on Embedded Multicore Systems >Locality-Aware Scheduling for Stencil Code in Halide
【24h】

Locality-Aware Scheduling for Stencil Code in Halide

机译:卤化物中的模板代码的位置感知调度

获取原文

摘要

Halide is a domain-specific language designed for image processing and stencil computation. Existing programming languages require the sacrifice of readability, portability and modularity to write high-performance image processing programs. Optimizing the execution strategy of a program oftentimes results in the heavy modification of code, which is a burden to a programmer. To simplify a programmer's task in optimizing his or her application, Halide separates the schedule and the algorithm of an application. A program's schedule can be changed independently in Halide, as the language decouples the algorithm and the schedule of an application. However, the exploration of possible schedules remains difficult and time-consuming. Exhaustive exploration is too common and brute-force. This paper proposes a locality-aware scheduler for the stencil computation. Exhaustive search is replaced by an algorithm using an analytical model. The algorithm delivers the overlapped tiling schedule with its tile size selection. We are able to achieve higher performance from the overlapped tiling scheduling due to better locality. In the Jacobi example, 8-time speedup over the baseline schedule is observed. We improve over the baseline scheduling in Halide without the exploration of all possible schedules.
机译:卤化物是一种专门用于图像处理和模板计算的域语言。现有的编程语言需要牺牲可读性,可移植性和模块化来编写高性能图像处理程序。优化程序的执行策略导致代码的繁重修改,这是程序员的负担。为了简化程序员在优化他或她的应用程序时,卤化物将计划和算法分开。程序的计划可以在卤化物中独立更改,因为语言对算法和应用程序的时间表脱钩。然而,可能的时间表的探索仍然困难且耗时。详尽的探索太常见和蛮力。本文提出了一种用于模板计算的位置感知调度器。使用分析模型的算法替换详尽的搜索。该算法通过其瓦片尺寸选择提供重叠的平铺计划。我们能够通过更好的位置实现从重叠的平铺调度来实现更高的性能。在Jacobi示例中,观察到基线计划的8次加速。我们在卤化物中改善基线调度,而不探索所有可能的时间表。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号