arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.14823cs.DC
收藏

将微观物理模型CASIM移植到GPU和KNL Cray机

Porting the microphysics model CASIM to GPU and KNL Cray machines

Nick Brown, Alexandr Nigay, Michèle Weiland, Adrian Hill, Ben Shipway

摘要:

CASIM是一个微物理方案,计算大气中水分液滴之间的相互作用,是天气和气候建模代码的关键部分。然而,所涉及的计算是计算密集型的,因此调查CASIM是否可以利用新的硬件架构以及这可能带来的性能提高是有意义的。在本文中,我们介绍了通过指令驱动的OpenACC将CASIM移植到GPU上所做的工作,并使用OpenMP修改CASIM以利用Knights Landing(KNL)处理器。由于这种设计,提取特定计算内核以卸载到GPU的模型被证明是次优的,相反,整个方案被移植到GPU。我们考虑OpenACC对于这种方法的适用性和成熟度,以及确定的重要优化。使CASIM能够利用KNL的优势要容易得多,但仍然需要仔细的实验,以了解最佳的设计和配置。这两个版本的CASIM的性能,在比较最新一代的CPU进行了讨论,然后确定经验教训的适用性CASIM和其他类似的模型,这些架构。这项工作的结果是CASIM的版本,在使用GPU和KNL时显示出有希望的性能优势,并使社区能够利用这些技术,以及可应用于其他类似天气和气候模型的一般技术。

英文摘要:

CASIM is a microphysics scheme which calculates the interaction between moisture droplets in the atmosphere and forms a critical part of weather and climate modelling codes. However the calculations involved are computationally intensive and so investigating whether CASIM can take advantage of novel hardware architectures and the likely increase in performance this might afford makes sense. In this paper we present work done in porting CASIM to GPUs via the directive driven OpenACC and also modifying CASIM to take advantage of the Knights Landing (KNL) processor using OpenMP. Due to the design, models extracting out specific computational kernels for offload to the GPU proved suboptimal and instead the entire scheme was ported over to the GPU. We consider the suitability and maturity of OpenACC for this approach as well as important optimisations that were identified. Enabling CASIM to take advantage of the KNL was significantly easier, but still required careful experimentation to understand the best design and configuration. The performance of both versions of CASIM, in comparison to the latest generation of CPUs is discussed, before identifying lessons learnt about the suitability of CASIM and other similar models for these architectures. The result of this work are versions of CASIM which show promising performance benefits when utilising both GPUs and KNLs and enable the communities to take advantage of these technologies, in addition to general techniques that can be applied to other similar weather and climate models.

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

↑