pith. sign in

arxiv: 2408.09902 · v1 · pith:6YLX64T3 · submitted 2024-08-19 · cs.DC

Implementing OpenMP for Zig to enable its use in HPC context

pith:6YLX64T3open to challenge →

classification cs.DC
keywords openmplanguageperformanceprogrammingaddedapplicationscompilerfeatures
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.