Dynamic and Speculative Polyhedral Parallelization Using Compiler-Generated Skeletons

被引:0
|
作者
Alexandra Jimborean
Philippe Clauss
Jean-François Dollinger
Vincent Loechner
Juan Manuel Martinez Caamaño
机构
[1] University of Uppsala,UPMARC
[2] University of Strasbourg,ICube, INRIA, CNRS
关键词
Algorithmic skeletons; Polytope model; Automatic parallelization; Speculative parallelization; Dynamic parallelization; Loop nests; Compilation;
D O I
暂无
中图分类号
学科分类号
摘要
We propose a framework based on an original generation and use of algorithmic skeletons, and dedicated to speculative parallelization of scientific nested loop kernels, able to apply at run-time polyhedral transformations to the target code in order to exhibit parallelism and data locality. Parallel code generation is achieved almost at no cost by using binary algorithmic skeletons that are generated at compile-time, and that embed the original code and operations devoted to instantiate a polyhedral parallelizing transformation and to verify the speculations on dependences. The skeletons are patched at run-time to generate the executable code. The run-time process includes a transformation selection guided by online profiling phases on short samples, using an instrumented version of the code. During this phase, the accessed memory addresses are used to compute on-the-fly dependence distance vectors, and are also interpolated to build a predictor of the forthcoming accesses. Interpolating functions and distance vectors are then employed for dependence analysis to select a parallelizing transformation that, if the prediction is correct, does not induce any rollback during execution. In order to ensure that the rollback time overhead stays low, the code is executed in successive slices of the outermost original loop of the nest. Each slice can be either a parallel version which instantiates a skeleton, a sequential original version, or an instrumented version. Moreover, such slicing of the execution provides the opportunity of transforming differently the code to adapt to the observed execution phases, by patching differently one of the pre-built skeletons. The framework has been implemented with extensions of the LLVM compiler and an x86-64 runtime system. Significant speed-ups are shown on a set of benchmarks that could not have been handled efficiently by a compiler.
引用
收藏
页码:529 / 545
页数:16
相关论文
共 50 条
  • [1] Dynamic and Speculative Polyhedral Parallelization Using Compiler-Generated Skeletons
    Jimborean, Alexandra
    Clauss, Philippe
    Dollinger, Jean-Francois
    Loechner, Vincent
    Caamano, Juan Manuel Martinez
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2014, 42 (04) : 529 - 545
  • [2] The Sparse Polyhedral Framework: Composing Compiler-Generated Inspector Executor Code
    Strout, Michelle Mills
    Hall, Mary
    Olschanowsky, Catherine
    PROCEEDINGS OF THE IEEE, 2018, 106 (11) : 1921 - 1934
  • [3] Online Dynamic Dependence Analysis for Speculative Polyhedral Parallelization
    Jimborean, Alexandra
    Clauss, Philippe
    Martinez, Juan Manuel
    Sukumaran-Rajam, Aravind
    EURO-PAR 2013 PARALLEL PROCESSING, 2013, 8097 : 191 - 202
  • [4] A COMPARISON OF COMPILER-GENERATED CODE
    TOMMELEIN, A
    TIBERGHIEN, J
    MICROPROCESSING AND MICROPROGRAMMING, 1985, 15 (02): : 47 - 56
  • [5] Dynamic and Speculative Polyhedral Parallelization of Loop Nests Using Binary Code Patterns
    Jimborean, Alexandra
    Clauss, Philippe
    Dollinger, Jean-Francois
    Loechner, Vincent
    Martinez Caamano, Juan Manuel
    2013 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE, 2013, 18 : 2575 - 2578
  • [6] A compiler cost model for speculative parallelization
    Dou, Jialin
    Cintra, Marcelo
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2007, 4 (02) : 12
  • [7] Prospect: A Compiler Framework for Speculative Parallelization
    Suesskraut, Martin
    Knauth, Thomas
    Weigert, Stefan
    Schiffel, Ute
    Meinhold, Martin
    Fetzer, Christof
    CGO 2010: THE EIGHTH INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, PROCEEDINGS, 2010, : 131 - +
  • [8] Connection resource management for compiler-generated communication
    Hinrichs, S
    CONCURRENCY-PRACTICE AND EXPERIENCE, 1997, 9 (02): : 85 - 112
  • [9] Compiler-generated communication for pipelined FPGA applications
    Ziegler, HE
    Hall, MW
    Diniz, PC
    40TH DESIGN AUTOMATION CONFERENCE, PROCEEDINGS 2003, 2003, : 610 - 615
  • [10] Simplifying control flow in compiler-generated parallel code
    Mellor-Crummey, J
    Adve, V
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 1998, 26 (05) : 613 - 638