量化 OpenMP:关于使用与采用情况的统计洞察
Quantifying OpenMP: Statistical Insights into Usage and Adoption
AI总结:
本文构建含 C/C++/Fortran 的 GitHub 代码数据库 HPCORPUS,统计分析 OpenMP 构造的使用与趋势,发现其占并行 API 的 45% 且持续增长,并揭示语言差异及 simd、target、task 等新采用趋势。
摘要:
在高性能计算(HPC)中,自 Dennard Scaling(登纳德缩放)终结以及随后向多核 CPU 转变以来,对高效并行编程模型的需求急剧增长。OpenMP 因其简单性和可移植性而成为一种广受欢迎的选择,为共享内存并行编程提供了由指令驱动的方法。然而,尽管 OpenMP 被广泛采用,目前仍缺乏关于 OpenMP 构造实际使用情况的全面数据,这妨碍了对其流行程度和演进过程形成无偏的洞察。本文基于一个新颖且庞大的数据库 HPCORPUS,对 OpenMP 的使用和采用趋势进行了统计分析;该数据库由包含 C、C++ 和 Fortran 代码的 GitHub 仓库汇编而成。结果表明,OpenMP 是占主导地位的并行编程模型,占全部被分析并行 API 的 45%。此外,在过去十年中,它的流行程度呈现出稳定而持续的增长。通过分析具体的 OpenMP 构造,本研究深入揭示了这些构造在三种语言中的使用模式和偏好。值得注意的是,我们发现,尽管 OpenMP 拥有一个由常用构造构成的强大“共同核心”(而 API 的其余部分使用较少),但也出现了新的采用趋势,例如用于加速计算的 simd 和 target 指令,以及用于不规则并行性的 task。总体而言,本研究阐明了 OpenMP 在 HPC 应用中的重要意义,并为研究人员和从业者提供了有价值的数据。它展示了 OpenMP 的多功能性、不断演进的采用情况及其在当代并行编程中的现实意义,强调了它在 HPC 应用及更广泛领域中的持续作用。这些统计洞察对于就并行化策略作出明智决策至关重要,并为并行编程模型与技术的进一步发展奠定了基础。
英文摘要:
In high-performance computing (HPC), the demand for efficient parallel programming models has grown dramatically since the end of Dennard Scaling and the subsequent move to multi-core CPUs. OpenMP stands out as a popular choice due to its simplicity and portability, offering a directive-driven approach for shared-memory parallel programming. Despite its wide adoption, however, there is a lack of comprehensive data on the actual usage of OpenMP constructs, hindering unbiased insights into its popularity and evolution. This paper presents a statistical analysis of OpenMP usage and adoption trends based on a novel and extensive database, HPCORPUS, compiled from GitHub repositories containing C, C++, and Fortran code. The results reveal that OpenMP is the dominant parallel programming model, accounting for 45% of all analyzed parallel APIs. Furthermore, it has demonstrated steady and continuous growth in popularity over the past decade. Analyzing specific OpenMP constructs, the study provides in-depth insights into their usage patterns and preferences across the three languages. Notably, we found that while OpenMP has a strong "common core" of constructs in common usage (while the rest of the API is less used), there are new adoption trends as well, such as simd and target directives for accelerated computing and task for irregular parallelism. Overall, this study sheds light on OpenMP's significance in HPC applications and provides valuable data for researchers and practitioners. It showcases OpenMP's versatility, evolving adoption, and relevance in contemporary parallel programming, underlining its continued role in HPC applications and beyond. These statistical insights are essential for making informed decisions about parallelization strategies and provide a foundation for further advancements in parallel programming models and techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。