Implementation and optimization of hybrid parallel strategy in HNET

IF 1.9
Peijun Li, Chen Hao, Zhaoyuan Liu, Tao Liu
{"title":"Implementation and optimization of hybrid parallel strategy in HNET","authors":"Peijun Li, Chen Hao, Zhaoyuan Liu, Tao Liu","doi":"10.3389/fnuen.2022.1058525","DOIUrl":null,"url":null,"abstract":"For the self-developed three-dimensional whole-core High-fidelity NEutron Transport calculation program HNET, although the numerical acceleration algorithms can improve the computation performance of high-fidelity neutron transport in terms of algorithms and models, it still faces some critical issues such as long computing time and enormous memory requirement. The rapid development of high-performance clusters provides a foundation for the application of massively parallel computing. Most current MOC programs are based on a single-type variable to achieve efficient parallelism, and spatial domain decomposition methods are the most common parallel schemes. However, its parallelism is limited and cannot fully utilize the current state-of-the-art computer resources. To solve this problem, hybrid parallel strategies are implemented in HNET to further expand the parallel degree, improve the speed of computation, and reduce the memory requirement. A hybrid MPI/OpenMP method based on domain decomposition and characteristic rays is proposed for the method of characteristics (MOC). For domain decomposition, the simulation domain is divided into spatial subdomains, with each subdomain handled by different processes. On this basis, the characteristic ray parallelism is implemented taking advantage of the inherent parallelism of the characteristic rays. Meanwhile, the optimization of the hybrid parallel strategy further improves the computation speed by eliminating atomic operations and using private pointer arrays and other techniques. In addition, in the framework of generalized equivalence theory (GET) based two-level coarse mesh finite difference method (CMFD), there is also a certain time consumption in solving CMFD linear system. Hence, for CMFD, a hybrid MPI/OpenMP method based on domain decomposition and secondary domain decomposition can be used. Using the secondary domain decomposition method, each subdomain is divided into sub-subdomains, with each sub-subdomain handled by threads, which allows CMFD to utilize the resources of characteristic ray parallelism in MOC, and also increases the speed of CMFD computation. Numerical results show that for both steady-state and transient calculations, the hybrid MPI/OpenMP in HNET can further expand the parallelism and accelerate the computation. It can take full use of parallel resources and achieve large-scale parallelism.","PeriodicalId":400400,"journal":{"name":"Frontiers in Nuclear Engineering","volume":"7 1","pages":"0"},"PeriodicalIF":1.9000,"publicationDate":"2022-12-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Nuclear Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3389/fnuen.2022.1058525","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

For the self-developed three-dimensional whole-core High-fidelity NEutron Transport calculation program HNET, although the numerical acceleration algorithms can improve the computation performance of high-fidelity neutron transport in terms of algorithms and models, it still faces some critical issues such as long computing time and enormous memory requirement. The rapid development of high-performance clusters provides a foundation for the application of massively parallel computing. Most current MOC programs are based on a single-type variable to achieve efficient parallelism, and spatial domain decomposition methods are the most common parallel schemes. However, its parallelism is limited and cannot fully utilize the current state-of-the-art computer resources. To solve this problem, hybrid parallel strategies are implemented in HNET to further expand the parallel degree, improve the speed of computation, and reduce the memory requirement. A hybrid MPI/OpenMP method based on domain decomposition and characteristic rays is proposed for the method of characteristics (MOC). For domain decomposition, the simulation domain is divided into spatial subdomains, with each subdomain handled by different processes. On this basis, the characteristic ray parallelism is implemented taking advantage of the inherent parallelism of the characteristic rays. Meanwhile, the optimization of the hybrid parallel strategy further improves the computation speed by eliminating atomic operations and using private pointer arrays and other techniques. In addition, in the framework of generalized equivalence theory (GET) based two-level coarse mesh finite difference method (CMFD), there is also a certain time consumption in solving CMFD linear system. Hence, for CMFD, a hybrid MPI/OpenMP method based on domain decomposition and secondary domain decomposition can be used. Using the secondary domain decomposition method, each subdomain is divided into sub-subdomains, with each sub-subdomain handled by threads, which allows CMFD to utilize the resources of characteristic ray parallelism in MOC, and also increases the speed of CMFD computation. Numerical results show that for both steady-state and transient calculations, the hybrid MPI/OpenMP in HNET can further expand the parallelism and accelerate the computation. It can take full use of parallel resources and achieve large-scale parallelism.
HNET中混合并行策略的实现与优化
对于自主开发的三维全核高保真中子输运计算程序HNET,虽然数值加速算法在算法和模型上都能提高高保真中子输运的计算性能,但仍然面临计算时间长、内存需求大等关键问题。高性能集群的快速发展为大规模并行计算的应用提供了基础。目前大多数MOC程序都是基于单一类型变量来实现高效并行,而空间域分解方法是最常见的并行方案。然而,它的并行性是有限的,不能充分利用当前最先进的计算机资源。为了解决这一问题,在HNET中采用混合并行策略,进一步扩大并行度,提高计算速度,降低内存需求。提出了一种基于区域分解和特征射线的混合MPI/OpenMP方法。对于域分解,将仿真域划分为空间子域,每个子域由不同的进程处理。在此基础上,利用特征射线的固有平行度实现特征射线平行度。同时,对混合并行策略进行优化,通过消除原子操作和使用私有指针数组等技术,进一步提高了计算速度。此外,在基于广义等价理论(GET)的两级粗网格有限差分法(CMFD)框架下,求解CMFD线性系统也存在一定的时间消耗。因此,对于CMFD,可以采用基于域分解和二次域分解的混合MPI/OpenMP方法。采用二次域分解方法,将每个子域划分为子域,每个子域由线程处理,使CMFD能够充分利用MOC中特征射线并行性的资源,提高了CMFD的计算速度。数值结果表明,无论是稳态计算还是瞬态计算,HNET中的混合MPI/OpenMP都可以进一步扩展并行性并加快计算速度。它可以充分利用并行资源,实现大规模并行。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书