用PETSc和SLEPc在克雷机上模拟地球的地磁环境
Modelling the earth's geomagnetic environment on Cray machines using PETSc and SLEPc
摘要:
英国地质调查局的全球地磁模型,地球磁环境模型(MEME),是计算地球磁场的重要工具,地球磁场是不断变化的。虽然从地面观测站和卫星收集数据的能力已经增长,但代码的内存限制性质已经证明了现代科学所需的建模问题大小的限制。在本文中,我们描述的工作取代定制的,顺序的,本征解算器与SLEPc软件包求解系统的正常方程。这项工作有双重目的,突破代码的内存限制,从而通过支持在分布式机器上执行来支持更大系统的建模,并提高性能。但是当采用SLEPc时,它不仅仅是求解正规方程,而且从根本上讲,我们如何构建和分发数据结构。我们描述了一种方法,用于建立对称矩阵的方式,提供了良好的负载平衡,避免了需要密切协调的进程之间或复制的工作。我们还研究了代码的内存限制性质,并结合详细的分析软件缓存预取显着优化。性能和伸缩性的探索ARCHER,一个Cray XC30,在那里我们实现了294倍的速度,通过替换模型的定制方法与SLEPc的求解器。这项工作还提供了对更大的系统尺寸建模的能力,高达100,000个模型系数。这种大规模的建模系统的一些挑战进行了探讨,并缓解,包括混合MPI+OpenMP以及使用迭代求解器也被认为是。这项工作的结果是一个现代MEME模型,不仅能够模拟最先进的地磁学所要求的问题大小,而且还可以作为SLEPc库实用性的进一步证据。
英文摘要:
The British Geological Survey's global geomagnetic model, Model of the Earth's Magnetic Environment (MEME), is an important tool for calculating the earth's magnetic field, which is continually in flux. Whilst the ability to collect data from ground based observation sites and satellites has grown, the memory bound nature of the code has proved a limitation in modelling problem sizes required by modern science. In this paper we describe work replacing the bespoke, sequential, eigen-solver with that of the SLEPc package for solving the system of normal equations. This work had a dual purpose, to break through the memory limit of the code, and thus support the modelling of much larger systems, by supporting execution on distributed machines, and to improve performance. But when adopting SLEPc it was not just the solving of the normal equations, but also fundamentally how we build and distribute the data structures. We describe an approach for building symmetric matrices in a way that provides good load balance and avoids the need for close co-ordination between processes or replication of work. We also study the memory bound nature of the code and combine detailed profiling with software cache prefetching to significantly optimise. Performance and scaling are explored on ARCHER, a Cray XC30, where we achieve a speed up for the solver of 294 times by replacing the model's bespoke approach with SLEPc. This work also provided the ability to model much larger system sizes, up to 100,000 model coefficients. Some of the challenges of modelling systems of this large scale are explored, and mitigations including hybrid MPI+OpenMP along with the use of iterative solvers are also considered. The result of this work is a modern MEME model that is not only capable of simulating problem sizes demanded by state of the art geomagnetism but also acts as further evidence to the utility of the SLEPc libary.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。