Memory Optimizations in an Array Language

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review

We present a technique for introducing and op-timizing the use of memory in a functional array language, aimed at GPU execution, that supports correct-by-construction parallelism. Using linear memory access descriptors as building blocks, we define a notion of memory in the compiler IR that enables cost-free change-of-layout transformations (e.g., slicing, transposition), whose results can even be carried across control flow such as ifs/loops without manifestation in memory. The memory notion allows a graceful transition to an unsafe IR that is automatically optimized (1) to mix reads and writes to the same array inside a parallel construct, and (2) to map semantically different arrays to the same memory block. The result is code similar to what imperative users would write. Our evaluation shows that our optimizations have significant impact (1.1 x -2 x) and result in performance competitive to hand-written code from challenging benchmarks, such as Rodinia's NW, LUD, Hotspot.

Original languageEnglish
Title of host publicationProceedings of SC 2022 : International Conference for High Performance Computing, Networking, Storage and Analysis
PublisherIEEE Computer Society Press
Publication date2022
Pages1-15
Article number31
ISBN (Electronic)9781665454445
DOIs
Publication statusPublished - 2022
Event2022 International Conference for High Performance Computing, Networking, Storage and Analysis, SC 2022 - Dallas, United States
Duration: 13 Nov 202218 Nov 2022

Conference

Conference2022 International Conference for High Performance Computing, Networking, Storage and Analysis, SC 2022
LandUnited States
ByDallas
Periode13/11/202218/11/2022
SponsorACM's Special Interest Group on High Performance Computing (SIGHPC), Association for Computing Machinery, IEEE Computer Society, IEEE's Technical Committee on High Performance Computing (TCHPC)

Bibliographical note

Publisher Copyright:
© 2022 IEEE.

    Research areas

  • functional programming, GPU, op-timizing compiler, parallelism

ID: 341477319