arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.07664cs.DCcs.OS
收藏

实现数据并行 OpenMP 应用在非对称多核处理器上的性能可移植性

Enabling performance portability of data-parallel OpenMP applications on asymmetric multicore processors

Juan Carlos Saez, Fernando Castro, Manuel Prieto-Matias

AI总结:

针对非对称多核处理器上数据并行OpenMP应用的负载不平衡问题,提出新型循环调度方法AID,在libgomp中实现并使性能较传统策略最高提升56%。

摘要:

非对称多核处理器(AMPs)将高性能大核与低功耗小核结合,它们具有相同的指令集架构,但时钟频率或微架构等特性不同。先前的工作表明,对于多样的工作负载,非对称设计可以提供比对称多核更高的能效。尽管有其优势,AMPs 对并行编程模型的运行时系统提出了重大挑战。虽然先前的工作主要通过运行时系统的增强来探索如何在 AMPs 上高效执行基于任务的并行应用,但在这些架构上提升未修改的数据并行应用的性能仍然是一个巨大挑战。在本工作中,我们分析了基于循环的 OpenMP 应用这一特定情况,这类应用如今广泛应用于科学和工程领域,并构成了许多用于多核系统性能评估的并行基准测试套件中的主要应用类型。我们观察到,传统的循环调度 OpenMP 方法无法有效应对由大核和小核不同性能自然引发的负载不平衡。为了解决这一缺陷,我们提出了 Asymmetric Iteration Distribution (AID),这是一组用于 AMPs 的新型循环调度方法,它跨工作线程不均匀地分配迭代以高效处理性能非对称。我们在 libgomp —— GNU OpenMP 运行时系统 —— 中实现了 AID,并在两个不同的非对称多核平台上对其进行了评估。我们的分析表明,AID 方法构成了 AMPs 上 static 和 dynamic 方法的有效替代,并且与这些传统策略相比,能够分别将性能提升高达 56% 和 16.8%。

英文摘要:

Asymmetric multicore processors (AMPs) couple high-performance big cores and low-power small cores with the same instruction-set architecture but different features, such as clock frequency or microarchitecture. Previous work has shown that asymmetric designs may deliver higher energy efficiency than symmetric multicores for diverse workloads. Despite their benefits, AMPs pose significant challenges to runtime systems of parallel programming models. While previous work has mainly explored how to efficiently execute task-based parallel applications on AMPs, via enhancements in the runtime system, improving the performance of unmodified data-parallel applications on these architectures is still a big challenge. In this work we analyze the particular case of loop-based OpenMP applications, which are widely used today in scientific and engineering domains, and constitute the dominant application type in many parallel benchmark suites used for performance evaluation on multicore systems. We observed that conventional loop-scheduling OpenMP approaches are unable to efficiently cope with the load imbalance that naturally stems from the different performance delivered by big and small cores. To address this shortcoming, we propose \textit{Asymmetric Iteration Distribution} (AID), a set of novel loop-scheduling methods for AMPs that distribute iterations unevenly across worker threads to efficiently deal with performance asymmetry. We implemented AID in \textit{libgomp} --the GNU OpenMP runtime system--, and evaluated it on two different asymmetric multicore platforms. Our analysis reveals that the AID methods constitute effective replacements of the \texttt{static} and \texttt{dynamic} methods on AMPs, and are capable of improving performance over these conventional strategies by up to 56\% and 16.8\%, respectively.

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

↑