Research on parallel computing of magnetic L-shell based on OpenMP

被引:0
|
作者
Sheng H. [1 ,2 ]
Zhang X. [1 ,3 ,4 ]
Zhu C. [1 ,3 ,4 ]
机构
[1] National Space Science Center, Chinese Academy of Sciences, Beijing
[2] University of Chinese Academy of Sciences, Beijing
[3] Beijing Key Laboratory of Space Environment Exploration, Beijing
[4] Key Laboratory of Science and Technology on Environmental Space Situation Awareness, Chinese Academy of Sciences, Beijing
来源
Zhongguo Kexue Jishu Kexue/Scientia Sinica Technologica | 2021年 / 51卷 / 03期
关键词
Magnetic L-shell; OpenMP; Parallel computing; Parallel efficiency; Parallel optimization; Parallel speedup ratio;
D O I
10.1360/SST-2019-0405
中图分类号
学科分类号
摘要
In the study of radiation belts, the (L, B) coordinate system reduces the three-dimensional problem to a two-dimensional problem, greatly improving the utilization of the limited three-dimensional observational data on radiation belts. The L-shell is one of the most important parameters in the (L, B) coordinate system. It is widely used in particle characteristics analysis, in the description of spacecrafts' orbital radiation environments, and in radiation band modeling. The L-shell is calculated as the integral of the magnetic line tracing, but the complexity of geomagnetic field configurations results in the strict limitation of the tracking step length, resulting in more steps consisting of a single tracking calculation. In addition, the tracking path and distance of different spatial position lines vary significantly with time and space. This variation results in the independence of many L-shell calculations from one another, with different levels of complexity. In such cases the summation of steps may not be able to be simplified, causing the calculation speed to be slow and the efficiency low. In order to improve the efficiency of the L-shell calculation, this paper uses OpenMP to realize singlemachine multithreading parallelization of L-shell calculation programs widely used at present. This paper then analyzes the acceleration ratio and efficiency boost of parallelization. The results show that the efficiency of L-shell calculation is much improved by parallel processing. When the number of threads is set equal to the maximum number of threads in the system (here, 8), parallel performance is optimal. The acceleration ratio ranges from 1.57 to 2.81, and the parallelization efficiency boost ranges from 19.63% to 35.13%. Load imbalance among threads is the main factor affecting parallel performance. In order to improve the parallel acceleration ratio and efficiency boost, this paper proposes a sort factor, representing the complexity of L-value calculation. Based on this, an algorithm of sorting and redistribution (sort, S) is proposed for load optimization. The effects of four methods of optimizing load imbalance are compared and analyzed: dynamic, sort+"S", sort+dynamic, and sort+"S"+dynamic. The results show that the sort + dynamic method provides the best optimization, increasing the optimization efficiency by 6.12%-9.50%. Using this method, the acceleration ratio ranges from 2.33 to 3.30, and the efficiency boost ranges from 29.13% to 41.25%. This paper shows that OpenMP can successfully parallelize and improve the computing efficiency of L-values. As for the problem of load imbalance, the best parallel acceleration ratio and efficiency boost can be achieved using sort+dynamic adjustment. This investigation provides a useful exploration of efficiency improvement for spatial physics and other fields that leverage similar types of big data analysis research. © 2021, Science Press. All right reserved.
引用
收藏
页码:356 / 370
页数:14
相关论文
共 30 条
  • [1] Baker D N, Erickson P J, Fennell J F, Et al., Space weather effects in the Earth's radiation belts, Space Sci Rev, 214, pp. 1-60, (2018)
  • [2] Xu J Y, He Z H, Baker D N, Et al., Characteristics of high-energy proton responses to geomagnetic activities in the inner radiation belt observed by the RBSP satellite, J Geophys Res Space Phys, 124, pp. 7581-7591, (2019)
  • [3] Turner D L, Kilpua E K J, Hietala H, Et al., The response of Earth's electron radiation belts to geomagnetic storms: Statistics from the van Allen probes era including effects from different storm drivers, J Geophys Res Space Phys, 124, pp. 1013-1034, (2019)
  • [4] McAdams K L, Reeves G D, Friedel R H W, Et al., Multisatellite comparisons of the radiation belt response to the Geospace Environment Modeling (GEM) magnetic storms, J Geophys Res, 106, pp. 10869-10882, (2001)
  • [5] Zong Q G, Yuan C J, Wang Y F, Et al., Dynamic variation and the fast acceleration of particles in Earth's radiation belt, Sci China Earth Sci, 56, pp. 1118-1140, (2013)
  • [6] Agapitov O, Mourenas D, Artemyev A, Et al., Time scales for electron quasi-linear diffusion by lower-band chorus waves: The effects of ω<sub>pe</sub>/Ω<sub>ce</sub> dependence on geomagnetic activity, Geophys Res Lett, 46, pp. 6178-6187, (2019)
  • [7] Fu S, Ni B B, Li J X, Et al., Interactions between magnetosonic waves and ring current protons: Gyroaveraged test particle simulations, J Geophys Res Space Phys, 121, pp. 8537-8553, (2016)
  • [8] Mourenas D, Artemyev A V, Ma Q, Et al., Fast dropouts of multi-MeV electrons due to combined effects of EMIC and whistler mode waves, Geophys Res Lett, 43, pp. 4155-4163, (2016)
  • [9] Chen Y R, Zhou Q H, He Y H, Et al., Global occurrences of electrostatic electron cyclotron harmonic waves associated with radiation belt electron distributions, Geophys Res Lett, 46, pp. 5028-5033, (2019)
  • [10] Wang Q, Fu S, Ni B B, Et al., Bounce resonance scattering of ring current electrons by H<sup>+</sup> band EMIC waves, Phys Plasmas, 25, (2018)