Mixed-data-model heterogeneous compilation and OpenMP offloading

Andreas Kurth, K. Wolters, Björn Forsberg, Alessandro Capotondi, A. Marongiu, T. Grosser, L. Benini
{"title":"Mixed-data-model heterogeneous compilation and OpenMP offloading","authors":"Andreas Kurth, K. Wolters, Björn Forsberg, Alessandro Capotondi, A. Marongiu, T. Grosser, L. Benini","doi":"10.1145/3377555.3377891","DOIUrl":null,"url":null,"abstract":"Heterogeneous computers combine a general-purpose host processor with domain-specific programmable many-core accelerators, uniting high versatility with high performance and energy efficiency. While the host manages ever-more application memory, accelerators are designed to work mainly on their local memory. This difference in addressed memory leads to a discrepancy between the optimal address width of the host and the accelerator. Today 64-bit host processors are commonplace, but few accelerators exceed 32-bit addressable local memory, a difference expected to increase with 128-bit hosts in the exascale era. Managing this discrepancy requires support for multiple data models in heterogeneous compilers. So far, compiler support for multiple data models has not been explored, which hampers the programmability of such systems and inhibits their adoption. In this work, we perform the first exploration of the feasibility and performance of implementing a mixed-data-model heterogeneous system. To support this, we present and evaluate the first mixed-data-model compiler, supporting arbitrary address widths on host and accelerator. To hide the inherent complexity and to enable high programmer productivity, we implement transparent offloading on top of OpenMP. The proposed compiler techniques are implemented in LLVM and evaluated on a 64+32-bit heterogeneous SoC. Results on benchmarks from the PolyBench-ACC suite show that memory can be transparently shared between host and accelerator at overheads below 0.7% compared to 32-bit-only execution, enabling mixed-data-model computers to execute at near-native performance.","PeriodicalId":322530,"journal":{"name":"Proceedings of the 29th International Conference on Compiler Construction","volume":"159 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-02-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 29th International Conference on Compiler Construction","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3377555.3377891","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Heterogeneous computers combine a general-purpose host processor with domain-specific programmable many-core accelerators, uniting high versatility with high performance and energy efficiency. While the host manages ever-more application memory, accelerators are designed to work mainly on their local memory. This difference in addressed memory leads to a discrepancy between the optimal address width of the host and the accelerator. Today 64-bit host processors are commonplace, but few accelerators exceed 32-bit addressable local memory, a difference expected to increase with 128-bit hosts in the exascale era. Managing this discrepancy requires support for multiple data models in heterogeneous compilers. So far, compiler support for multiple data models has not been explored, which hampers the programmability of such systems and inhibits their adoption. In this work, we perform the first exploration of the feasibility and performance of implementing a mixed-data-model heterogeneous system. To support this, we present and evaluate the first mixed-data-model compiler, supporting arbitrary address widths on host and accelerator. To hide the inherent complexity and to enable high programmer productivity, we implement transparent offloading on top of OpenMP. The proposed compiler techniques are implemented in LLVM and evaluated on a 64+32-bit heterogeneous SoC. Results on benchmarks from the PolyBench-ACC suite show that memory can be transparently shared between host and accelerator at overheads below 0.7% compared to 32-bit-only execution, enabling mixed-data-model computers to execute at near-native performance.
混合数据模型异构编译和OpenMP卸载
异构计算机将通用主机处理器与特定领域的可编程多核加速器结合在一起,将高通用性与高性能和能效结合在一起。当主机管理越来越多的应用程序内存时,加速器被设计为主要在它们的本地内存上工作。寻址内存中的这种差异导致主机和加速器的最佳地址宽度之间的差异。今天64位主机处理器很常见,但很少有加速器超过32位可寻址本地内存,在百亿亿次时代,这种差异预计会随着128位主机而增加。管理这种差异需要在异构编译器中支持多个数据模型。到目前为止,还没有研究编译器对多种数据模型的支持,这妨碍了此类系统的可编程性并阻碍了它们的采用。在这项工作中,我们首次探索了实现混合数据模型异构系统的可行性和性能。为了支持这一点,我们提出并评估了第一个混合数据模型编译器,它支持主机和加速器上的任意地址宽度。为了隐藏固有的复杂性并提高程序员的工作效率,我们在OpenMP之上实现了透明的卸载。提出的编译器技术在LLVM中实现,并在64+32位异构SoC上进行了评估。PolyBench-ACC套件的基准测试结果表明,与仅执行32位相比,内存可以在主机和加速器之间透明地共享,开销低于0.7%,从而使混合数据模型计算机能够以接近本机的性能执行。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信
小红书