首页 | 本学科首页   官方微博 | 高级检索  
     

基于OPS的计算流体力学软件多平台自动并行
引用本文:王巍,车永刚,徐传福,王正华.基于OPS的计算流体力学软件多平台自动并行[J].计算机工程与科学,2021,43(5):773-781.
作者姓名:王巍  车永刚  徐传福  王正华
作者单位:(国防科技大学计算机学院量子信息研究所兼高性能计算国家重点实验室,湖南 长沙 410073)
基金项目:国防基础科研项目(WDZC614270301201906);国家自然科学基金(61561146395,61772542)
摘    要:当前高性能计算机体系结构呈现多样性特征,给并行应用软件开发带来巨大挑战.采用领域特定语言OPS对高阶精度计算流体力学软件HNSC进行面向多平台的并行化,使用OPS API实现了代码的重构,基于OPS前后端自动生成了纯M PI、OpenM P、M PI+OpenM P和M PI+CUDA版本的可执行程序.在一个配有2块Intel Xeon CPU E5-2660 V3 CPU和1块NVIDIA Tesla K80 GPU的服务器上的性能测试表明,基于O PS自动生成的并行代码性能与手工并行代码的性能可比甚至更优,并且O PS自动生成的GPU并行代码相对于其CPU并行代码有明显的性能加速.测试结果说明,使用OPS等领域特定语言进行面向多平台的计算流体力学并行软件开发是一种可行且高效的途径.

关 键 词:领域特定语言  计算流体力学软件  多平台  自动代码生成  
收稿时间:2020-06-11
修稿时间:2020-07-28

OPS based automatic parallelization of a computational fluid dynamics software on multiple platforms
WANG Wei,CHE Yong-gang,XU Chuan-fu,WANG Zheng-hua.OPS based automatic parallelization of a computational fluid dynamics software on multiple platforms[J].Computer Engineering & Science,2021,43(5):773-781.
Authors:WANG Wei  CHE Yong-gang  XU Chuan-fu  WANG Zheng-hua
Affiliation:(Institute of Quantum Information and State Key Laboratory of High Performance Computing, College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
Abstract:Current High Performance Computing (HPC) systems exhibit diverse architectures, posing great pressure to the development of parallel applications. This paper uses OPS (Oxford parallel library for structured mesh Solvers), a Domain Specific Language, to parallelize a Computational Fluid Dynamics (CFD) software named HNSC (High order Navier-Stokes simulator for Compressible flow). The code is restructured based on OPS API. The pure MPI, pure OpenMP, MPI + OpenMP and MPI+CUDA versions of executables are automatically generated based on OPS frontend and backend. Performance evaluation is performed on a server consisting of two Intel Xeon CPU E5-2660 V3 CPUs and one NVIDIA Tesla K80 GPU. The results show that the parallel codes generated automatically based on OPS have comparable or superior performance when compared to the manual versions of codes. Furthermore, the OPS generated GPU code achieves significant performance acceleration over the OPS generat- ed CPU codes. From the results, we can affirm that using OPS like DSLs for multiplatform oriented programming parallelizing of CFD application is feasible and efficient.
Keywords:domain specific language  computational fluid dynamics software  multiple platforms  automatic code generation     
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号