首页> 外文会议>International Conference on Parallel Processing Workshops >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.
机译:卤化物是一种特定领域的语言,专门用于图像处理和模版计算。现有的编程语言需要牺牲可读性,可移植性和模块化来编写高性能图像处理程序。优化程序的执行策略通常会导致代码的大量修改,这对程序员来说是一个负担。为了简化程序员优化应用程序的任务,Halide将时间表和应用程序算法分开。程序的时间表可以在Halide中独立更改,因为该语言使算法和应用程序的时间表脱钩。然而,探索可能的时间表仍然是困难且耗时的。详尽的探索太普遍且过于暴力。本文提出了一种用于模板计算的位置感知调度器。详尽搜索被使用解析模型的算法取代。该算法通过其图块大小选择来提供重叠的图块计划。由于具有更好的局部性,我们可以通过重叠的切片调度来实现更高的性能。在Jacobi的示例中,观察到在基准时间表上有8倍的加速。我们改进了Halide中的基准计划,而没有探索所有可能的计划。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号