Streaming irregular arrays

Robert Clifton-Everest, Trevor L. McDonell, Manuel M.T. Chakravarty, Gabriele Keller

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Previous work has demonstrated that it is possible to generate eicient and highly parallel code for multicore CPUs and GPUs from combinator-based array languages for a range of applications. That work, however, has been limited to operating on lat, rectangular structures without any facilities for irregularity or nesting. In this paper, we show that even a limited form of nesting provides substantial beneits both in terms of the expressiveness of the language (increasing modularity and providing support for simple irregular structures) and the portability of the code (increasing portability across resource-constrained devices, such as GPUs). Speciically, we generalise Blelloch's lattening transformation along two lines: (1) we explicitly distinguish between deinitely regular and potentially irregular computations; and (2) we handle multidimensional arrays. We demonstrate the utility of this generalisation by an extension of the embedded array language Accelerate to include irregular streams of multidimensional arrays. We discuss code generation, optimisation, and irregular stream scheduling as well as a range of benchmarks on both multicore CPUs and GPUs.

Original languageEnglish
Title of host publicationHaskell 2017 Proceedings of the 10th ACM SIGPLAN International Symposium on Haskell, co-located with ICFP 2017
PublisherAssociation for Computing Machinery
Pages174-185
Number of pages12
ISBN (Electronic)9781450351829
DOIs
Publication statusPublished - 7 Sept 2017
Externally publishedYes
Event10th ACM SIGPLAN International Symposium on Haskell, Haskell 2017 - Oxford, United Kingdom
Duration: 7 Sept 20178 Sept 2017

Conference

Conference10th ACM SIGPLAN International Symposium on Haskell, Haskell 2017
Country/TerritoryUnited Kingdom
CityOxford
Period7/09/178/09/17

Keywords

  • Data parallelism
  • Functional programming
  • Streaming

Fingerprint

Dive into the research topics of 'Streaming irregular arrays'. Together they form a unique fingerprint.

Cite this