arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1610.07236cs.PLcs.DCcs.PF
收藏

分片多面体程序的静态/动态混合调度

Hybrid Static/Dynamic Schedules for Tiled Polyhedral Programs

Tian Jin, Nirmal Prajapati, Waruna Ranasinghe, Guillaume Iooss, Yun Zou, Sanjay Rajopadhye, David Wonnacott

摘要:

多面体编译器执行诸如平铺和并行化之类的优化;当同时执行这两项时,它们通常生成执行平铺的“屏障同步波前”的代码。我们提出了一个系统来表达和生成代码的混合时间表,其中一些约束是自动满足通过结构的代码,其余的动态执行在运行时与数据流机制。我们证明了边界上增加的开销是更好的,至少一个多项式的程度,比以前的技术。我们提出了一种通用的机制来实现所需的同步,并表明它可以很容易地实现各种目标:OpenMP,Pthreads,GPU(CUDA或OpenCL)代码,语言,如X10,Habanero,Cilk,以及数据流平台,如DAGuE,OpenStream和MPI。我们还提供了一个简单的具体实现,它不需要任何复杂的运行时机制。我们的实验表明,我们的简单的实现是有竞争力的或优于其他系统产生的波前同步代码。我们还展示了如何提出的机制可以实现24%至70%的能源减少。

英文摘要:

Polyhedral compilers perform optimizations such as tiling and parallelization; when doing both, they usually generate code that executes "barrier-synchronized wavefronts" of tiles. We present a system to express and generate code for hybrid schedules, where some constraints are automatically satisfied through the structure of the code, and the remainder are dynamically enforced at run-time with data flow mechanisms. We prove bounds on the added overheads that are better, by at least one polynomial degree, than those of previous techniques. We propose a generic mechanism to implement the needed synchronization, and show it can be easily realized for a variety of targets: OpenMP, Pthreads, GPU (CUDA or OpenCL) code, languages like X10, Habanero, Cilk, as well as data flow platforms like DAGuE, and OpenStream and MPI. We also provide a simple concrete implementation that works without the need of any sophisticated run-time mechanism. Our experiments show our simple implementation to be competitive or better than the wavefront-synchronized code generated by other systems. We also show how the proposed mechanism can achieve 24% to 70% reduction in energy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑