Fusing Gathers with Integer Linear Programming

David van Balen, Gabriele Keller, Ivo Gabede Wolff, Trevor L. McDonell
{"title":"Fusing Gathers with Integer Linear Programming","authors":"David van Balen, Gabriele Keller, Ivo Gabede Wolff, Trevor L. McDonell","doi":"arxiv-2407.13585","DOIUrl":null,"url":null,"abstract":"We present an Integer Linear Programming based approach to finding the\noptimal fusion strategy for combinator-based parallel programs. While\ncombinator-based languages or libraries provide a convenient interface for\nprogramming parallel hardware, fusing combinators to more complex operations is\nessential to achieve the desired performance. Our approach is not only suitable\nfor languages with the usual map, fold, scan, indexing and scatter operations,\nbut also gather operations, which access arrays in arbitrary order, and\ntherefore goes beyond the traditional producer-consumer fusion. It can be\nparametrised with appropriate cost functions, and is fast enough to be suitable\nfor just-in-time compilation.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":"172 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.13585","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We present an Integer Linear Programming based approach to finding the optimal fusion strategy for combinator-based parallel programs. While combinator-based languages or libraries provide a convenient interface for programming parallel hardware, fusing combinators to more complex operations is essential to achieve the desired performance. Our approach is not only suitable for languages with the usual map, fold, scan, indexing and scatter operations, but also gather operations, which access arrays in arbitrary order, and therefore goes beyond the traditional producer-consumer fusion. It can be parametrised with appropriate cost functions, and is fast enough to be suitable for just-in-time compilation.
融合收集与整数线性规划
我们提出了一种基于整数线性规划的方法,为基于组合器的并行程序寻找最佳融合策略。虽然基于组合器的语言或程序库为并行硬件编程提供了方便的接口,但要达到理想的性能,必须将组合器与更复杂的操作相融合。我们的方法不仅适用于具有常用的映射、折叠、扫描、索引和分散操作的语言,也适用于以任意顺序访问数组的集合操作,因此超越了传统的生产者-消费者融合。它可以用适当的代价函数进行分解,而且速度足够快,适用于即时编译。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信