The Platform-Aware Compilation Environment 1 Status and Future Directions

Total Page:16

File Type:pdf, Size:1020Kb

The Platform-Aware Compilation Environment 1 Status and Future Directions The Platform-Aware Compilation Environment 1 Status and Future Directions June 13, 2012 1 The Platform-Aware Compilation Environment project (PACE) is funded by the Defense Advanced Projects Research Agency (DARPA) through Air Force Research Laboratory (AFRL) Contract FA8650-09-C-7915 with Rice University. PACE is part of the Architecture-Aware Compilation Environment program (AACE). The opinions and findings in this document do not necessarily reflect the views of either the United States Government or Rice University. ii Credits The Platform-Aware Compiler Environment (PACE) project is an inter-institutional collaboration. Organization Location Principal Contacts Rice University (lead) Houston, TX, USA Keith D. Cooper, PI John Mellor-Crummey Erzsebet´ Merenyi´ Krishna Palem Vivek Sarkar Linda Torczon ET International Newark, DE, USA Rishi Khan Ohio State University Columbus, OH, USA P. Sadayappan Stanford University Palo Alto, CA, USA Sanjiva Lele Texas Instruments, Inc. Dallas, TX, USA Reid Tatge The PACE team includes a large number of additional colleagues and collaborators: Laksono Adhianto,1 Rajkishore Barik,1 Heba Bevan,1 Milind Chabbi, 1 Jean-Christophe Beyler,2 Zoran Budimlic,´ 1 Michael Burke,1 Vincent Cave,´ 1 Lakshmi Chakrapani,1 Phillipe Charles,1 Jack Dennis,2 Sebastien Donadio,2 Mike Fagan,1 Guohua Jin,1 Paul Hahn,1 Timothy Harvey,1 Thomas Henretty,3 Justin Hoelwinski,3, Zhao Jishen,1 Sam Kaplan,2 Kirk Kelsey,2 Mark Krentel,1 Abid Malik,1 Dung “Zung” Nguyen,1 Rene Pecnik,˘ 4 Louis-Noel¨ Pouchet,3 Atanas Rountev,3 Jeffrey Sandoval,1 Arnold Schwaighofer,1 Jun Shirako,1 Ray Simar,1 Brian West,1 Yonghong Yan,1 Anna Youseffi,1 Jisheng Zhao1 1 Rice University 2 ET International 3 Ohio State University 4 Stanford University 5 Texas Instruments, Incorporated Technical Contacts: Keith D. Cooper 713-348-6013 [email protected] Linda Torczon 713-348-5177 [email protected] Vivek Sarkar 713-348-5304 [email protected] Design Document Master: Michael Burke 713-348-4476 [email protected] Administrative Contacts: Penny Anderson 713-348-5186 [email protected] Lena Sifuentes 713-348-6325 [email protected] Web Site: http://pace.rice.edu Contents 1 Overview of the PACE System 1 1.1 Introduction . .1 1.1.1 Motivation . .1 1.1.2 Document Roadmap . .3 1.2 Structure of the PACE System . .3 1.2.1 Information Flow in the PACE System . .4 1.2.1.1 The Compiler . .4 1.2.1.2 The Runtime System . .5 1.2.1.3 The Characterization Tools . .5 1.2.1.4 Machine Learning Tool . .6 1.2.2 Storing Knowledge in a Distributed Fashion . .7 1.3 Adaptation in the PACE Compiler . .7 1.3.1 Characteristic Driven Optimization . .8 1.3.2 Offline Feedback-Driven Optimization . .8 1.3.3 Online Feedback-Driven Optimization . .9 1.3.4 Machine Learning . 10 1.4 Status . 10 2 Resource Characterization in the PACE System 13 2.1 Introduction . 13 2.1.1 Motivation . 13 2.1.2 Approach . 14 2.2 Functionality . 15 2.2.1 Interfaces . 15 2.2.2 Inputs . 15 2.2.3 Output . 17 2.3 Method . 18 2.3.1 Reporting Characteristic Values . 19 2.3.1.1 Interface to Other PACE Tools . 21 3 An Overview of the PACE Compiler 23 3.1 Introduction . 23 3.2 Functionality . 23 3.2.1 Input and Output . 23 3.2.2 Interfaces . 24 3.2.3 The Refactored Program Unit . 25 3.2.4 The Optimization Plan . 25 3.3 Components of the PACE Compiler . 26 iii iv CONTENTS 3.3.1 Compiler Driver . 26 3.3.2 Platform-Aware Optimizer . 27 3.3.2.1 Polyhedral Analysis and Transformation Tools . 27 3.3.3 PAO!TAO IR Translator . 27 3.3.4 Target-Aware Optimizer . 27 3.4 Paths Through the PACE Compiler . 28 3.5 Optimization in the PACE Compiler . 28 3.6 Software Base for the PACE Compiler . 30 4 PACE Platform-Aware Optimizer Overview 31 4.1 Introduction . 31 4.2 Functionality . 31 4.2.1 Input . 31 4.2.2 Output . 31 4.3 Method . 33 4.3.1 Front end . 33 4.3.2 Program Analyses . 34 4.3.3 Legality Analysis . 34 4.3.4 Cost Analysis: Memory Hierarchy . 35 4.3.5 Cost Analysis: PAO-TAO Query Interface . 36 4.3.6 Transcription . 37 4.3.7 The Optimization Plan . 38 4.3.8 PAO Parameters for Runtime System . 38 4.3.9 Guidance from Runtime System . 38 5 PolyOpt The Polyhedral Optimization Framework 39 5.1 Introduction . 39 5.1.1 Motivation . 39 5.1.2 Background . 40 5.2 Functionality . 40 5.2.1 Static Control Part (SCoP) Code Fragments . 41 5.2.2 SCoP Detection and Extraction of Polyhedra . 41 5.2.3 Polyhedral Dependence Analysis with Candl . 42 5.2.4 Pluto Transformation Generator . 43 5.2.5 Polyhedral Code Generation with CLooG . 43 5.2.6 Parametric Tiling with PTile . 43 5.2.7 Translation to Sage ASTs ............................. 43 5.3 Method . 44 5.3.1 SCoP Detection and Extraction of Polyhedra . 44 5.3.2 Polyhedral Dependence Analysis with Candl . 44 5.3.3 Pluto Transformation Generator . 45 5.3.4 Polyhedral Code Generation with CLooG . 47 5.3.5 Translation to Sage ASTs ............................. 47 5.3.6 Parametric Tiling with PTile . 48 6 AST-based Transformations in the Platform-Aware Optimizer 51 6.1 Introduction and Motivation . 51 6.2 Functionality . 52 6.2.1 Input . 52 6.2.2 Output . 52 CONTENTS v 6.3 Method . 52 6.3.1 Pattern-driven Idiom Recognition . 53 6.3.2 AST-based Loop Tiling . 54 6.3.3 Selection of Tile Size . 55 6.3.3.1 DL Model . 55 6.3.3.2 ML Model . 56 6.3.3.3 Bounding Search Space and Selecting Initial Tile Size . 56 6.3.4 Loop Interchange . 57 6.3.5 Unrolling of Nested Loops . 57 6.3.5.1 Cost Driven Loop Unroll-and-Jam . 58 6.3.5.2 Pruning the Search Space . 59 6.3.6 Scalar Replacement . 59 6.3.7 Incremental Reanalysis . 59 7 The Rose to LLVM Translator 63 7.1 Introduction . 63 7.1.1 Motivation . 63 7.2 Functionality . 63 7.2.1 Input . ..
Recommended publications
  • Expression Rematerialization for VLIW DSP Processors with Distributed Register Files ?
    Expression Rematerialization for VLIW DSP Processors with Distributed Register Files ? Chung-Ju Wu, Chia-Han Lu, and Jenq-Kuen Lee Department of Computer Science, National Tsing-Hua University, Hsinchu 30013, Taiwan {jasonwu,chlu}@pllab.cs.nthu.edu.tw,[email protected] Abstract. Spill code is the overhead of memory load/store behavior if the available registers are not sufficient to map live ranges during the process of register allocation. Previously, works have been proposed to reduce spill code for the unified register file. For reducing power and cost in design of VLIW DSP processors, distributed register files and multi- bank register architectures are being adopted to eliminate the amount of read/write ports between functional units and registers. This presents new challenges for devising compiler optimization schemes for such ar- chitectures. This paper aims at addressing the issues of reducing spill code via rematerialization for a VLIW DSP processor with distributed register files. Rematerialization is a strategy for register allocator to de- termine if it is cheaper to recompute the value than to use memory load/store. In the paper, we propose a solution to exploit the character- istics of distributed register files where there is the chance to balance or split live ranges. By heuristically estimating register pressure for each register file, we are going to treat them as optional spilled locations rather than spilling to memory. The choice of spilled location might pre- serve an expression result and keep the value alive in different register file. It increases the possibility to do expression rematerialization which is effectively able to reduce spill code.
    [Show full text]
  • User-Directed Loop-Transformations in Clang
    User-Directed Loop-Transformations in Clang Michael Kruse Hal Finkel Argonne Leadership Computing Facility Argonne Leadership Computing Facility Argonne National Laboratory Argonne National Laboratory Argonne, USA Argonne, USA [email protected] hfi[email protected] Abstract—Directives for the compiler such as pragmas can Only #pragma unroll has broad support. #pragma ivdep made help programmers to separate an algorithm’s semantics from popular by icc and Cray to help vectorization is mimicked by its optimization. This keeps the code understandable and easier other compilers as well, but with different interpretations of to optimize for different platforms. Simple transformations such as loop unrolling are already implemented in most mainstream its meaning. However, no compiler allows applying multiple compilers. We recently submitted a proposal to add generalized transformations on a single loop systematically. loop transformations to the OpenMP standard. We are also In addition to straightforward trial-and-error execution time working on an implementation in LLVM/Clang/Polly to show its optimization, code transformation pragmas can be useful for feasibility and usefulness. The current prototype allows applying machine-learning assisted autotuning. The OpenMP approach patterns common to matrix-matrix multiplication optimizations. is to make the programmer responsible for the semantic Index Terms—OpenMP, Pragma, Loop Transformation, correctness of the transformation. This unfortunately makes it C/C++, Clang, LLVM, Polly hard for an autotuner which only measures the timing difference without understanding the code. Such an autotuner would I. MOTIVATION therefore likely suggest transformations that make the program Almost all processor time is spent in some kind of loop, and return wrong results or crash.
    [Show full text]
  • Elimination of Memory-Based Dependences For
    Elimination of Memory-Based Dependences for Loop-Nest Optimization and Parallelization: Evaluation of a Revised Violated Dependence Analysis Method on a Three-Address Code Polyhedral Compiler Konrad Trifunovic1, Albert Cohen1, Razya Ladelsky2, and Feng Li1 1 INRIA Saclay { ^Ile-de-France and LRI, Paris-Sud 11 University, Orsay, France falbert.cohen, konrad.trifunovic, [email protected] 2 IBM Haifa Research, Haifa, Israel [email protected] Abstract In order to preserve the legality of loop nest transformations and parallelization, data- dependences need to be analyzed. Memory dependences come in two varieties: they are either data-flow dependences or memory-based dependences. While data-flow de- pendences must be satisfied in order to preserve the correct order of computations, memory-based dependences are induced by the reuse of a single memory location to store multiple values. Memory-based dependences reduce the degrees of freedom for loop transformations and parallelization. While systematic array expansion techniques exist to remove all memory-based dependences, the overhead on memory footprint and the detrimental impact on register-level reuse can be catastrophic. Much care is needed when eliminating memory-based dependences, and this is particularly essential for polyhedral compilation on three-address code representation like the GRAPHITE pass of GCC. We propose and evaluate a technique allowing a compiler to ignore some memory- based dependences while checking for the legality of a given affine transformation. This technique does not involve any array expansion. When this technique is not sufficient to expose data parallelism, it can be used to compute the minimal set of scalars and arrays that should be privatized.
    [Show full text]
  • A General Compilation Algorithm to Parallelize and Optimize Counted Loops with Dynamic Data-Dependent Bounds Jie Zhao, Albert Cohen
    A general compilation algorithm to parallelize and optimize counted loops with dynamic data-dependent bounds Jie Zhao, Albert Cohen To cite this version: Jie Zhao, Albert Cohen. A general compilation algorithm to parallelize and optimize counted loops with dynamic data-dependent bounds. IMPACT 2017 - 7th International Workshop on Polyhedral Compilation Techniques, Jan 2017, Stockholm, Sweden. pp.1-10. hal-01657608 HAL Id: hal-01657608 https://hal.inria.fr/hal-01657608 Submitted on 7 Dec 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. A general compilation algorithm to parallelize and optimize counted loops with dynamic data-dependent bounds Jie Zhao Albert Cohen INRIA & DI, École Normale Supérieure 45 rue d’Ulm, 75005 Paris fi[email protected] ABSTRACT iterating until a dynamically computed, data-dependent up- We study the parallelizing compilation and loop nest opti- per bound. Such bounds are loop invariants, but often re- mization of an important class of programs where counted computed in the immediate vicinity of the loop they con- loops have a dynamically computed, data-dependent upper trol; for example, their definition may take place in the im- bound. Such loops are amenable to a wider set of trans- mediately enclosing loop.
    [Show full text]
  • Foundations of Scientific Research
    2012 FOUNDATIONS OF SCIENTIFIC RESEARCH N. M. Glazunov National Aviation University 25.11.2012 CONTENTS Preface………………………………………………….…………………….….…3 Introduction……………………………………………….…..........................……4 1. General notions about scientific research (SR)……………….……….....……..6 1.1. Scientific method……………………………….………..……..……9 1.2. Basic research…………………………………………...……….…10 1.3. Information supply of scientific research……………..….………..12 2. Ontologies and upper ontologies……………………………….…..…….…….16 2.1. Concepts of Foundations of Research Activities 2.2. Ontology components 2.3. Ontology for the visualization of a lecture 3. Ontologies of object domains………………………………..………………..19 3.1. Elements of the ontology of spaces and symmetries 3.1.1. Concepts of electrodynamics and classical gauge theory 4. Examples of Research Activity………………….……………………………….21 4.1. Scientific activity in arithmetics, informatics and discrete mathematics 4.2. Algebra of logic and functions of the algebra of logic 4.3. Function of the algebra of logic 5. Some Notions of the Theory of Finite and Discrete Sets…………………………25 6. Algebraic Operations and Algebraic Structures……………………….………….26 7. Elements of the Theory of Graphs and Nets…………………………… 42 8. Scientific activity on the example “Information and its investigation”……….55 9. Scientific research in Artificial Intelligence……………………………………..59 10. Compilers and compilation…………………….......................................……69 11. Objective, Concepts and History of Computer security…….………………..93 12. Methodological and categorical apparatus of scientific research……………114 13. Methodology and methods of scientific research…………………………….116 13.1. Methods of theoretical level of research 13.1.1. Induction 13.1.2. Deduction 13.2. Methods of empirical level of research 14. Scientific idea and significance of scientific research………………………..119 15. Forms of scientific knowledge organization and principles of SR………….121 1 15.1. Forms of scientific knowledge 15.2.
    [Show full text]
  • Polyhedral-Model Guided Loop-Nest Auto-Vectorization Konrad Trifunović, Dorit Nuzman, Albert Cohen, Ayal Zaks, Ira Rosen
    Polyhedral-Model Guided Loop-Nest Auto-Vectorization Konrad Trifunović, Dorit Nuzman, Albert Cohen, Ayal Zaks, Ira Rosen To cite this version: Konrad Trifunović, Dorit Nuzman, Albert Cohen, Ayal Zaks, Ira Rosen. Polyhedral-Model Guided Loop-Nest Auto-Vectorization. The 18th International Conference on Parallel Architectures and Com- pilation Techniques, Sep 2009, Raleigh, United States. hal-00645325 HAL Id: hal-00645325 https://hal.inria.fr/hal-00645325 Submitted on 27 Nov 2011 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Polyhedral-Model Guided Loop-Nest Auto-Vectorization Konrad Trifunovic †, Dorit Nuzman ∗, Albert Cohen †, Ayal Zaks ∗ and Ira Rosen ∗ ∗IBM Haifa Research Lab, {dorit, zaks, irar}@il.ibm.com †INRIA Saclay, {konrad.trifunovic, albert.cohen }@inria.fr Abstract—Optimizing compilers apply numerous inter- Modern architectures must exploit multiple forms of par- dependent optimizations, leading to the notoriously difficult allelism provided by platforms while using the memory phase-ordering problem — that of deciding which trans- hierarchy efficiently. Systematic solutions to harness the formations to apply and in which order. Fortunately, new infrastructures such as the polyhedral compilation framework interplay of multi-level parallelism and locality are emerg- host a variety of transformations, facilitating the efficient explo- ing, by advances in automatic parallelization and loop nest ration and configuration of multiple transformation sequences.
    [Show full text]
  • Compiler Construction
    Compiler construction PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information. PDF generated at: Sat, 10 Dec 2011 02:23:02 UTC Contents Articles Introduction 1 Compiler construction 1 Compiler 2 Interpreter 10 History of compiler writing 14 Lexical analysis 22 Lexical analysis 22 Regular expression 26 Regular expression examples 37 Finite-state machine 41 Preprocessor 51 Syntactic analysis 54 Parsing 54 Lookahead 58 Symbol table 61 Abstract syntax 63 Abstract syntax tree 64 Context-free grammar 65 Terminal and nonterminal symbols 77 Left recursion 79 Backus–Naur Form 83 Extended Backus–Naur Form 86 TBNF 91 Top-down parsing 91 Recursive descent parser 93 Tail recursive parser 98 Parsing expression grammar 100 LL parser 106 LR parser 114 Parsing table 123 Simple LR parser 125 Canonical LR parser 127 GLR parser 129 LALR parser 130 Recursive ascent parser 133 Parser combinator 140 Bottom-up parsing 143 Chomsky normal form 148 CYK algorithm 150 Simple precedence grammar 153 Simple precedence parser 154 Operator-precedence grammar 156 Operator-precedence parser 159 Shunting-yard algorithm 163 Chart parser 173 Earley parser 174 The lexer hack 178 Scannerless parsing 180 Semantic analysis 182 Attribute grammar 182 L-attributed grammar 184 LR-attributed grammar 185 S-attributed grammar 185 ECLR-attributed grammar 186 Intermediate language 186 Control flow graph 188 Basic block 190 Call graph 192 Data-flow analysis 195 Use-define chain 201 Live variable analysis 204 Reaching definition 206 Three address
    [Show full text]
  • Synthesis and Exploration of Loop Accelerators for Systems-On-A-Chip
    Synthesis and Exploration of Loop Accelerators for Systems-on-a-Chip Der Technischen Fakultät der Universität Erlangen-Nürnberg zur Erlangung des Grades DOKTOR-INGENIEUR vorgelegt von Hritam Dutta Erlangen 2011 Als Dissertation genehmigt von der Technischen Fakultät der Universität Erlangen-Nürnberg Tag der Einreichung: . 10. Januar 2011 Tag der Promotion: . 03. März 2011 Dekan: . Prof. Dr.-Ing. Reinhard German Berichterstatter: . Prof. Dr.-Ing. Jürgen Teich . .Prof. Christian Lengauer, Ph.D. Acknowledgements I owe my deepest gratitude to my adviser, Professor Jürgen Teich, for always being enthusiastic to propose and discuss new ideas. He also provided me a great amount of freedom, and valuable scientific and editorial feedback. I would also like to thank Professor Christian Lengauer for agreeing to serve on my dissertation committee and the suggestions to improve the dissertation. My sincere gratitude also goes to Professor Bernard Pottier and Professor Ulrich Rüde for introducing me to new ideas and fields of research. My special thanks goes to all colleagues, especially, Frank Hannig, Dmitrij Kissler, Joachim Keinert, Richard Membarth, Moritz Schmid, Jens Gladigau, Dirk Koch for brainstorming sessions and intensive co-operation, which led to key scientific progress and enrichment of my knowledge. I appreciate Frank’s patience in reading the whole dissertation and making valuable suggestions. I was fortunate to have won- derful office mates in Mateusz Majer and Tobias Ziermann, and thank them both for all the technical and non-technical discussions. My sincere acknowledgements also goes to external colleagues Sebastian Siegel, Rainer Schaffer (TU Dresden), Wolf- gang Haid (ETH Zürich), Samar Yazdani (UBO, Brest) for co-operation on important research problems.
    [Show full text]
  • Portable Section-Level Tuning of Compiler Parallelized Applications
    Portable Section-level Tuning of Compiler Parallelized Applications Dheya Mustafa and Rudolf Eigenmann Electrical and Computer Engineering Purdue University West Lafayette, USA Email:{dmustaf,eigenman}@purdue.edu Abstract—Automatic parallelization of sequential programs and challenging. We will show that section-level tuning can combined with tuning is an alternative to manual parallelization. outperform whole-program tuning by up to 82%. The chal- This method has the potential to substantially increase productiv- lenge is in managing the drastic growth in the search space ity and is thus of critical importance for exploiting the increased computational power of today’s multicores. A key difficulty is of optimization variants. Empirical tuning methods work by that parallelizing compilers are generally unable to estimate the evaluating many optimization variants and choosing the one performance impact of an optimization on a whole program or a that performs the best at runtime [6]–[10]. During this process, program section at compile time; hence, the ultimate performance they need to consider interactions between the optimization decision today rests with the developer. Building an autotuning variants. This issue is already severe in existing, whole- system to remedy this situation is not a trivial task. This work presents a portable empirical autotuning system that operates at program tuning methods. The effect of an optimization may program-section granularity and partitions the compiler options depend significantly on the presence of another (e.g., unrolling into groups that can be tuned independently. and vectorization influence each other). Therefore, a large To our knowledge, this is the first approach delivering an au- number of combinations of program optimizations need to be toparallelization system that ensures performance improvements evaluated.
    [Show full text]
  • Mipsprotm Fortran 77 Programmer's Guide
    MIPSproTM Fortran 77 Programmer’s Guide 007–2361–009 COPYRIGHT Copyright © 1994, 1999, 2002 - 2003 Silicon Graphics, Inc. All rights reserved; provided portions may be copyright in third parties, as indicated elsewhere herein. No permission is granted to copy, distribute, or create derivative works from the contents of this electronic documentation in any manner, in whole or in part, without the prior written permission of Silicon Graphics, Inc. LIMITED RIGHTS LEGEND The electronic (software) version of this document was developed at private expense; if acquired under an agreement with the USA government or any contractor thereto, it is acquired as "commercial computer software" subject to the provisions of its applicable license agreement, as specified in (a) 48 CFR 12.212 of the FAR; or, if acquired for Department of Defense units, (b) 48 CFR 227-7202 of the DoD FAR Supplement; or sections succeeding thereto. Contractor/manufacturer is Silicon Graphics, Inc., 1600 Amphitheatre Pkwy 2E, Mountain View, CA 94043-1351. TRADEMARKS AND ATTRIBUTIONS Silicon Graphics, SGI, the Silicon Graphics logo, IRIS, IRIX, and Origin are registered trademarks and OpenMP, IRIS 4D, IRIS Power Series, and POWER CHALLENGE are trademarks of Silicon Graphics, Inc. in the United States and other countries worldwide. MIPS, R4000, R4400, R8000, R10000 are registered trademarks and MIPSpro and R12000 are trademarks of MIPS Technologies, Inc. MIPSpro is used under license by Silicon Graphics, Inc. UNIX is a registered trademark of the Open Group in the United States and other countries. VMS and VAX are trademarks of Compaq. Portions of this product and document are derived from material copyrighted by Kuck and Associates, Inc.
    [Show full text]
  • Unified Polyhedral Modeling of Temporal and Spatial Locality
    Unified Polyhedral Modeling of Temporal and Spatial Locality Oleksandr Zinenko, Sven Verdoolaege, Chandan Reddy, Jun Shirako, Tobias Grosser, Vivek Sarkar, Albert Cohen To cite this version: Oleksandr Zinenko, Sven Verdoolaege, Chandan Reddy, Jun Shirako, Tobias Grosser, et al.. Unified Polyhedral Modeling of Temporal and Spatial Locality. [Research Report] RR-9110, Inria Paris. 2017, pp.41. hal-01628798 HAL Id: hal-01628798 https://hal.inria.fr/hal-01628798 Submitted on 6 Nov 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Unified Polyhedral Modeling of Temporal and Spatial Locality Oleksandr Zinenko, Sven Verdoolaege, Chandan Reddy, Jun Shirako, Tobias Grosser, Vivek Sarkar, Albert Cohen RESEARCH REPORT N° 9110 October 2017 Project-Team Parkas ISSN 0249-6399 ISRN INRIA/RR--9110--FR+ENG Unified Polyhedral Modeling of Temporal and Spatial Locality Oleksandr Zinenko*, Sven Verdoolaege, Chandan Reddy* , Jun Shirako§, Tobias Grosser¶, Vivek Sarkar§, Albert Cohen* Project-Team Parkas Research Report n° 9110 | October 2017 | 37 pages Abstract: Despite decades of work in this area, the construction of effective loop nest optimizers and parallelizers continues to be challenging due to the increasing diversity of both loop-intensive application workloads and complex memory/computation hierarchies in modern processors.
    [Show full text]
  • Power and Energy Impact by Loop Transformations
    Power and Energy Impact by Loop Transformations Hongbo Yang†, Guang R. Gao†, Andres Marquez†, George Cai‡, Ziang Hu† † Dept of Electrical and Computer Engineering ‡ Intel Corp University of Delaware 1501 S. Mopac Expressway, Suite 400 Newark, DE 19716 Austin, TX 78746 hyang,ggao,marquez,hu ¡ @capsl.udel.edu [email protected] Power dissipation issues are becoming one of the closely coupled, and we should not evaluate in- major design issues in high performance processor dividual effects in complete isolation. Instead, it architectures. is very useful to assess the combined contribu- In this paper, we study the contribution of com- tion of both, high-level and low-level loop opti- piler optimizations to energy reduction. In particu- mizations. lar, we are interested in the impact of loop optimiza- ¢ In particular, results of our experiments are tions in terms of performance and power tradeoffs. summarized as follow: Both low-level loop optimizations at code generation (back-end) phase, such as loop unrolling and soft- – Loop unrolling reduces execution time ware pipelining, and high-level loop optimizations at through effective exploitation of ILP from program analysis and transformation phase ( front- different iterations and results in energy end), such as loop permutation and tiling, are stud- reduction. ied. – Software pipelining may help in reducing In this study, we use the Delaware Power-Aware total energy consumption – due to the re- Compilation Testbed (Del-PACT) — an integrated duction of the total execution time. How- framework consisting of a modern industry-strength ever, in the two benchmarks we tested, compiler infrastructure and a state-of-the-art micro- the effects of high-level loop transforma- architecture-level power analysis platform.
    [Show full text]