O2ATH:面向Sunway异构众核平台的OpenMP卸载工具包
O2ATH: An OpenMP Offloading Toolkit for the Sunway Heterogeneous Manycore Platform
AI总结:
针对大型遗留项目难以手动移植到Sunway异构架构的问题,开发了O2ATH工具包,通过将OpenMP调用转发至Athread库简化并行化,实现3至15倍内核加速及3至6倍整体应用加速,显著提升开发效率。
摘要:
下一代Sunway超级计算机采用SW26010pro处理器,该处理器具有专用的片上异构架构。通过精心进行密集的手动众核并行化工作,具有显著热点(hotspots)的应用程序能够从Sunway众核架构计算能力的大幅提升中获益。然而,一些代码库庞大的遗留项目(如CESM、ROMS和WRF)包含大量代码行,且没有显著热点。将此类应用程序手动移植到Sunway架构的成本几乎难以承受。为克服这一挑战,我们开发了名为O2ATH的工具包。O2ATH将GNU OpenMP运行时库调用转发至Sunway的Athread库,极大地简化了Sunway架构上的并行化工作。O2ATH允许用户在单一文件中同时编写MPE和CPE代码,并通过利用OpenMP指令和属性来实现并行化。在实际应用中,O2ATH帮助我们通过OpenMP卸载方法,将CESM和ROMS两个大型项目移植到了下一代Sunway超级计算机的CPE上。在实验中,内核加速比达到3至15倍,整体应用加速比达到3至6倍。此外,与手动编写CPE函数相比,O2ATH所需的代码修改量显著减少。这表明,在Sunway超级计算机上移植或优化大型软件项目时,O2ATH能够极大提升开发效率。
英文摘要:
The next generation Sunway supercomputer employs the SW26010pro processor, which features a specialized on-chip heterogeneous architecture. Applications with significant hotspots can benefit from the great computation capacity improvement of Sunway many-core architectures by carefully making intensive manual many-core parallelization efforts. However, some legacy projects with large codebases, such as CESM, ROMS and WRF, contain numerous lines of code and do not have significant hotspots. The cost of manually porting such applications to the Sunway architecture is almost unaffordable. To overcome such a challenge, we have developed a toolkit named O2ATH. O2ATH forwards GNU OpenMP runtime library calls to Sunway's Athread library, which greatly simplifies the parallelization work on the Sunway architecture.O2ATH enables users to write both MPE and CPE code in a single file, and parallelization can be achieved by utilizing OpenMP directives and attributes. In practice, O2ATH has helped us to port two large projects, CESM and ROMS, to the CPEs of the next generation Sunway supercomputers via the OpenMP offload method. In the experiments, kernel speedups range from 3 to 15 times, resulting in 3 to 6 times whole application speedups.Furthermore, O2ATH requires significantly fewer code modifications compared to manually crafting CPE functions.This indicates that O2ATH can greatly enhance development efficiency when porting or optimizing large software projects on Sunway supercomputers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。