Energy-aware architectures provide applications with a mix of low (LITTLE) and high (big) frequency cores. Choosing the best hardware configuration for a program running on such an architecture is difficult, because program parts benefit differently from the same hardware configuration. State-of-the-art techniques to solve this problem adapt the program's execution to dynamic characteristics of the runtime environment, such as energy consumption and throughput. We claim that these purely dynamic techniques can be improved if they are aware of the program's syntactic structure. To support this claim, we show how to use the compiler to partition source code into program phases: regions whose syntactic characteristics lead to similar runtime behavior. We use reinforcement learning to map pairs formed by a program phase and a hardware state to the configuration that best fit this setup. To demonstrate the effectiveness of our ideas, we have implemented the Astro system. Astro uses Q-learning to associate syntactic features of programs with hardware configurations. As a proof of concept, we provide evidence that Astro outperforms GTS, the ARM-based Linux scheduler tailored for heterogeneous architectures, on the parallel benchmarks from Rodinia and Parsec.
University of Amsterdam(阿姆斯特丹大学);Qualcomm Technologies Netherlands B.V.(高通技术荷兰有限公司);Qualcomm AI Research(高通人工智能研究院);Qualcomm Technologies, Inc.(高通技术公司)
GP 2是一种基于规则的程序设计语言,它基于图变换规则,旨在方便程序分析和验证。用这种语言编写高效的程序是一个挑战,因为图匹配是昂贵的。GP 2通过提供根规则来解决这个问题,在温和的条件下,这些根规则可以在恒定的时间内匹配。最近,我们对Bak的GP 2-to-C编译器进行了一些更改,以加快图形程序的速度。一个关键的改进是一个新的动态数组数据结构,称为BigArray。这是一个指向条目数组的指针数组,大小依次加倍。为了证明新的实现可实现的速度,我们提出了一个减少程序,用于识别二进制DAG,以前运行在二次时间,但现在运行在线性时间与新的编译器编译时。
ETH Zurich Switzerland;Chalmers University of Technology\ of Gothenburg Sweden;Institute for Infocomm Research (I 2 R), A STAR Singapore;Nanyang Technological University Singapore;ETH Zurich;Chalmers University of Technology\ of Gothenburg;Institute for Infocomm Research (I 2 R), A STAR;Nanyang Technological University
Toward Compiler World Models: Learning Latent Dynamics for Efficient Tensor Program Search
Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences(中国科学院大学杭州高等研究院);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学)