MagIC v5.10: a two-dimensional message-passing interface (MPI) distribution for pseudo-spectral magnetohydrodynamics simulations in spherical geometry
-
Published:2021-12-07
Issue:12
Volume:14
Page:7477-7495
-
ISSN:1991-9603
-
Container-title:Geoscientific Model Development
-
language:en
-
Short-container-title:Geosci. Model Dev.
Author:
Lago Rafael, Gastine Thomas, Dannert Tilman, Rampp Markus, Wicht JohannesORCID
Abstract
Abstract. We discuss two parallelization schemes for MagIC, an open-source, high-performance, pseudo-spectral code for the numerical solution of the magnetohydrodynamics equations in a rotating spherical shell. MagIC calculates the non-linear terms on a numerical grid in spherical coordinates, while the time step updates are performed on radial grid points with a spherical harmonic representation of the lateral directions. Several transforms are required to switch between the different representations. The established hybrid parallelization of MagIC uses message-passing interface (MPI) distribution in radius and relies on existing fast spherical transforms using OpenMP. Our new two-dimensional MPI decomposition implementation also distributes the latitudes or the azimuthal wavenumbers across the available MPI tasks and compute cores. We discuss several non-trivial algorithmic optimizations and the different data distribution layouts employed by our scheme. In particular, the two-dimensional distribution data layout yields a code that strongly scales well beyond the limit of the current one-dimensional distribution. We also show that the two-dimensional distribution implementation, although not yet fully optimized, can already be faster than the existing finely optimized hybrid parallelization when using many thousands of CPU cores. Our analysis indicates that the two-dimensional distribution variant can be further optimized to also surpass the performance of the one-dimensional distribution for a few thousand cores.
Publisher
Copernicus GmbH
Reference52 articles.
1. Abramowitz, M. and Stegun, I. A.: Handbook of Mathematical Functions with
Formulas, Graphs, and Mathematical Tables, Dover, New York, 9th dover
printing, 10th gpo printing Edn., 1964. a 2. Anderson, E., Bai, Z., Bischof, C., Blackford, S., Dongarra, J. D. J., Croz,
J. D., Greenbaum, A., Hammarling, S., McKenney, A., and Sorensen, D.:
LAPACK Users' Guide, SIAM, Philadelphia, Pennsylvania, USA, 3rd
Edn., 1999. a 3. Ascher, U. M., Ruuth, S. J., and Wetton, B. T. R.: Implicit-explicit
methods for time-dependent partial differential equations, SIAM J.
Numer. Anal., 32, 797–823, 1995. a 4. Ascher, U. M., Ruuth, S. J., and Spiteri, R. J.: Implicit-explicit
Runge-Kutta methods for time-dependent partial differential equations,
Appl. Numer. Math., 25, 151–167, 1997. a 5. Barik, A., Triana, S. A., Hoff, M., and Wicht, J.: Triadic resonances
in the wide-gap spherical Couette system, J. Fluid Mech., 843,
211–243, https://doi.org/10.1017/jfm.2018.138, 2018. a
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|