Skip to main content
QUICK REVIEW

[Paper Review] Tiramisu: A Code Optimization Framework for High Performance Systems

Riyadh Baghdadi, Jessica M. Ray|arXiv (Cornell University)|Apr 27, 2018
Parallel Computing and Optimization TechniquesComputer Science6 citations
TL;DR

Tiramisu is a polyhedral-based code optimization framework that decouples algorithms, schedules, data layouts, and communication into a four-level intermediate representation, enabling efficient code generation for diverse high-performance architectures including multicore CPUs, GPUs, FPGAs, and distributed systems. It extends Halide with new capabilities and achieves performance matching or exceeding hand-optimized libraries like Intel MKL, with speedups up to 4x on multicore systems.

ABSTRACT

This paper introduces Tiramisu, an optimization framework designed to generate efficient code for high-performance systems such as multicores, GPUs, FPGAs, distributed machines, or any combination of these. Tiramisu relies on a flexible representation based on the polyhedral model and introduces a novel four-level IR that allows full separation between algorithms, schedules, data-layouts and communication. This separation simplifies targeting multiple hardware architectures from the same algorithm. We evaluate Tiramisu by writing a set of linear algebra and DNN kernels and by integrating it as a pass in the Halide compiler. We show that Tiramisu extends Halide with many new capabilities, and that Tiramisu can generate efficient code for multicores, GPUs, FPGAs and distributed heterogeneous systems. The performance of code generated by the Tiramisu backends matches or exceeds hand-optimized reference implementations. For example, the multicore backend matches the highly optimized Intel MKL library on many kernels and shows speedups reaching 4x over the original Halide.

Motivation & Objective

  • To address the challenge of writing portable, high-performance code for heterogeneous systems such as multicore CPUs, GPUs, FPGAs, and distributed clusters.
  • To overcome the tight coupling between algorithm, schedule, data layout, and communication in existing code generation frameworks.
  • To enable automatic code generation that matches or exceeds hand-optimized implementations across diverse architectures.
  • To extend the Halide compiler with new optimization capabilities through integration as a backend pass.

Proposed method

  • Employing a flexible polyhedral model representation to express data-parallel computations with precise dependence analysis.
  • Introducing a novel four-level intermediate representation (IR) that explicitly separates algorithm, schedule, data layout, and communication.
  • Using the four-level IR to decouple algorithmic logic from low-level implementation details, enabling independent optimization and reuse.
  • Supporting code generation for multiple target architectures by expressing schedules and data layouts independently of the algorithm.
  • Integrating Tiramisu as a pass within the Halide compiler to leverage Halide’s existing infrastructure while extending its capabilities.
  • Generating optimized code for multicore, GPU, FPGA, and distributed heterogeneous systems through automated scheduling and layout transformations.

Experimental results

Research questions

  • RQ1Can a unified framework generate high-performance code for diverse architectures including multicore CPUs, GPUs, FPGAs, and distributed systems?
  • RQ2How effectively can a four-level IR separating algorithm, schedule, data layout, and communication improve code portability and performance?
  • RQ3To what extent can Tiramisu match or exceed hand-optimized libraries like Intel MKL in performance on multicore systems?
  • RQ4How does Tiramisu extend the Halide compiler’s capabilities in code generation and optimization?
  • RQ5What performance gains can be achieved by using Tiramisu’s automated optimization pipeline compared to original Halide implementations?

Key findings

  • Tiramisu generates code for multicore, GPU, FPGA, and distributed heterogeneous systems from the same algorithmic specification.
  • The multicore backend of Tiramisu matches the performance of the highly optimized Intel MKL library on many linear algebra and DNN kernels.
  • Tiramisu achieves up to 4x speedup over the original Halide implementation on multicore systems.
  • Integration of Tiramisu as a pass in Halide extends Halide’s capabilities with support for new hardware targets and optimization strategies.
  • The four-level IR enables full separation of concerns, simplifying code generation and maintenance across diverse architectures.
  • Code generated by Tiramisu backends matches or exceeds hand-optimized reference implementations in performance across all evaluated platforms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.