The reviewed record of science sign in
Pith

arxiv: 2409.20148 · v1 · pith:PTEYLTQ3 · submitted 2024-09-30 · cs.DC · cs.PL

Pragma driven shared memory parallelism in Zig by supporting OpenMP loop directives

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:PTEYLTQ3record.jsonopen to challenge →

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

The Zig programming language, which is designed to provide performance and safety as first class concerns, has become popular in recent years. Given that Zig is built upon LLVM, and-so enjoys many of the benefits provided by the ecosystem, including access to a rich set of backends, Zig has significant potential for high performance workloads. However, it is yet to gain acceptance in HPC and one of the reasons for this is that support for the pragma driven shared memory parallelism is missing. In this paper we describe enhancing the Zig compiler to add support for OpenMP loop directives. Then exploring performance using NASA's NAS Parallel Benchmark (NPB) suite. We demonstrate that not only does our integration of OpenMP with Zig scale comparatively to Fortran and C reference implementations of NPB, but furthermore Zig provides up to a 1.25 times performance increase compared to Fortran.

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.