Streaming irregular arrays
Publication date
2017-09-07
Editors
Advisors
Supervisors
Document Type
Part of book
Metadata
Show full item recordCollections
License
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.
Keywords
Data parallelism, Functional programming, Streaming, Software, Human-Computer Interaction, Computer Graphics and Computer-Aided Design, Computer Science Applications, Computer Vision and Pattern Recognition
Citation
Clifton-Everest, R, McDonell, T L, Chakravarty, M M T & Keller, G 2017, Streaming irregular arrays. in Haskell 2017 Proceedings of the 10th ACM SIGPLAN International Symposium on Haskell, co-located with ICFP 2017. Association for Computing Machinery, pp. 174-185, 10th ACM SIGPLAN International Symposium on Haskell, Haskell 2017, Oxford, United Kingdom, 7/09/17. https://doi.org/10.1145/3122955.3122971, conference