arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.09902cs.DC
收藏

为Zig实现OpenMP以支持其在高性能计算(HPC)场景下的应用

Implementing OpenMP for Zig to enable its use in HPC context

David Kacs, Nick Brown, Joseph Lee

AI总结:

本研究针对Zig语言缺乏OpenMP支持的问题,借助LLVM工具链为其添加部分OpenMP支持,验证了性能与传统HPC语言相当甚至更优,证明Zig可用于HPC开发并为后续特性扩展奠基。

摘要:

这篇扩展摘要探索了在Zig编程语言中支持OpenMP的方案。目前C和Fortran是实现高性能计算(HPC)应用的主流语言,而Zig在提供相近性能水平的同时,还具备多项现代语言特性,例如强制内存安全。但Zig缺少对事实上的线程化编程技术OpenMP的支持。\n 借助Zig的LLVM编译器工具链,我们为Zig编译器添加了OpenMP的部分支持,并验证了搭配OpenMP的Zig程序所达到的性能与传统HPC语言相当,部分情况下甚至更优。由此我们证明Zig是一种适用于HPC的可行且重要的编程技术,这项工作为向Zig添加更多HPC特性铺平了道路,最终为HPC开发者提供了一种更安全、更现代的语言选择,用于开发高性能应用程序。

英文摘要:

This extended abstract explores supporting OpenMP in the Zig programming language. Whilst, C and Fortran are currently the main languages used to implement HPC applications, Zig provides a similar level of performance complimented with several modern language features, such as enforcing memory safety. However, Zig lacks support for OpenMP which is the de facto threaded programming technology. Leveraging Zig's LLVM compiler tooling, we have added partial support for OpenMP to the Zig compiler and demonstrated that the performance attained by using Zig with OpenMP is comparable to, and in come cases exceeds, that of conventional HPC languages. Consequently we demonstrate that Zig is a viable and important programming technology to use for HPC, and this work paves the way for more HPC features to be added to Zig, ultimately providing HPC developers with the option of using a safer, more modern language for creating high performance applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑