ClangJIT: Enhancing C++ with Just-in-Time Compilation

H. Finkel, David Poliakoff, D. Richards
{"title":"ClangJIT: Enhancing C++ with Just-in-Time Compilation","authors":"H. Finkel, David Poliakoff, D. Richards","doi":"10.1109/P3HPC49587.2019.00013","DOIUrl":null,"url":null,"abstract":"The C++ programming language is not only a keystone of the high-performance-computing ecosystem but has proven to be a successful base for portable parallel-programming frameworks. As is well known, C++ programmers use templates to specialize algorithms, thus allowing the compiler to generate highly-efficient code for specific parameters, data structures, and so on. This capability has been limited to those specializations that can be identified when the application is compiled, and in many critical cases, compiling all potentially-relevant specializations is not practical. ClangJIT provides a well-integrated C++ language extension allowing template-based specialization to occur during program execution. This capability has been implemented for use in large-scale applications, and we demonstrate that just-in-time- compilation-based dynamic specialization can be integrated into applications, often requiring minimal changes (or no changes) to the applications themselves, providing significant performance improvements, programmer-productivity improvements, and de- creased compilation time.","PeriodicalId":377385,"journal":{"name":"2019 IEEE/ACM International Workshop on Performance, Portability and Productivity in HPC (P3HPC)","volume":"179 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"15","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE/ACM International Workshop on Performance, Portability and Productivity in HPC (P3HPC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/P3HPC49587.2019.00013","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 15

Abstract

The C++ programming language is not only a keystone of the high-performance-computing ecosystem but has proven to be a successful base for portable parallel-programming frameworks. As is well known, C++ programmers use templates to specialize algorithms, thus allowing the compiler to generate highly-efficient code for specific parameters, data structures, and so on. This capability has been limited to those specializations that can be identified when the application is compiled, and in many critical cases, compiling all potentially-relevant specializations is not practical. ClangJIT provides a well-integrated C++ language extension allowing template-based specialization to occur during program execution. This capability has been implemented for use in large-scale applications, and we demonstrate that just-in-time- compilation-based dynamic specialization can be integrated into applications, often requiring minimal changes (or no changes) to the applications themselves, providing significant performance improvements, programmer-productivity improvements, and de- creased compilation time.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
ClangJIT:用即时编译增强c++
c++编程语言不仅是高性能计算生态系统的基石,而且已被证明是可移植并行编程框架的成功基础。众所周知,c++程序员使用模板专门化算法,从而允许编译器为特定的参数、数据结构等生成高效的代码。此功能仅限于在编译应用程序时可以识别的那些专门化,并且在许多关键情况下,编译所有潜在相关的专门化是不切实际的。ClangJIT提供了一个集成良好的c++语言扩展,允许在程序执行期间进行基于模板的专门化。这个功能已经被实现用于大规模的应用程序,并且我们证明了基于即时编译的动态专门化可以集成到应用程序中,通常只需要对应用程序本身进行最小的更改(或者不需要更改),从而提供了显著的性能改进、程序员生产力的提高和编译时间的减少。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
On Applying Performance Portability Metrics [Copyright notice] Performance Portability of Multi-Material Kernels mdspan in C++: A Case Study in the Integration of Performance Portable Features into International Language Standards RAJA: Portable Performance for Large-Scale Scientific Applications
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1