ddRingAllreduce: a high-precision RingAllreduce algorithm

被引:2
|
作者
Lei, Xiaojun [1 ]
Gu, Tongxiang [2 ]
Xu, Xiaowen [2 ,3 ]
机构
[1] China Acad Engn Phys, Grad Sch, 6 Huayuan Rd, Beijing 100193, Peoples R China
[2] Inst Appl Phys & Computat Math, Lab Computat Phys, 6 Huayuan Rd, Beijing 100088, Peoples R China
[3] CAEP Software Ctr Numer Simulat, 6 Huayuan Rd, Beijing 100088, Peoples R China
基金
中国国家自然科学基金;
关键词
RingAllreduce; ddRingAllreduce; Collective communication; Double-double arithmetic; High precision; FLOATING-POINT SUMMATION; ACCURATE; FAITHFUL;
D O I
10.1007/s42514-023-00150-2
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
For complex problems in scientific computing, parallel computing is almost the only way to solve them, in which global reduction is one of the most frequently used operations. Due to the existence of floating-point rounding errors, the existing global reduction algorithm may result in inaccurate or different between two runs, which are difficult to meet the needs of complex applications. Since the communication cost of RingAllreduce is a constant, independent of the number of processes, it is an effective algorithm when a large amount of data needs to be communicated. However, it faces the same problem as the general global reduction operation, and it is necessary to develop a high-precision RingAllreduce algorithm. In this paper, by combining double-double arithmetic and RingAllreduce algorithm, we propose a high-precision RingAllreduce algorithm, called ddRingAllreduce algorithm. The theoretical error of the proposed algorithm is analyzed and the compact error bounds are derived. We have carried out a large number of parallel numerical experiments and obtained numerical results consistent with the theoretical analysis, and ddRingAllreduce is accurate in the case that RingAllreduce is inaccurate or miscalculated. At the same time, we also analyze the relationship between the problem size and the cost of using double-double arithmetic through experiments, at a small scale, the ddRingAllreduce algorithm can achieve higher accuracy with relatively less time overhead.
引用
收藏
页码:245 / 257
页数:13
相关论文
共 50 条
  • [31] A fast parallel high-precision summation algorithm based on AccSumK
    Lei, Xiaojun
    Gu, Tongxiang
    Graillat, Stef
    Jiang, Hao
    Qi, Jin
    Journal of Computational and Applied Mathematics, 2022, 406
  • [32] A High-Precision Algorithm for Phasor Measurement Using Mathematical Morphology
    Wang, Chao
    Wang, Fangzong
    2010 ASIA-PACIFIC POWER AND ENERGY ENGINEERING CONFERENCE (APPEEC), 2010,
  • [33] Efficient Monte Carlo algorithm and high-precision results for percolation
    Newman, MEJ
    Ziff, RM
    PHYSICAL REVIEW LETTERS, 2000, 85 (19) : 4104 - 4107
  • [34] High-precision IFM receiver based on random forest algorithm
    Zou, Ying
    Hu, Anyu
    Sun, Mingchen
    Zhang, Chao
    Xue, Xufeng
    Wang, Wen
    MEASUREMENT SCIENCE AND TECHNOLOGY, 2025, 36 (01)
  • [35] High-Precision Static Aberration Correction Method of SPGD Algorithm
    Chen Meirui
    Jiang Lu
    Mao Hongmin
    Sun Huijuan
    Peng Jiantao
    Xu Guoding
    Hu Lifa
    Lu Huanjun
    Cao Zhaoliang
    ACTA OPTICA SINICA, 2023, 43 (05)
  • [36] A high-precision automatic phase shifting algorithm with wavelength tuning
    Su, Shu
    Zhong, Ping
    Tang, Xin
    Li, Zhisong
    Zhai, Tianbao
    Li, Niuqi
    Zheng, Wei
    24TH NATIONAL LASER CONFERENCE & FIFTEENTH NATIONAL CONFERENCE ON LASER TECHNOLOGY AND OPTOELECTRONICS, 2020, 11717
  • [37] High-precision control algorithm for velocity and position of ultrasonic motor
    Chen N.
    Zheng J.-J.
    Fan S.-X.
    Li H.-F.
    Fan D.-P.
    Guangxue Jingmi Gongcheng/Optics and Precision Engineering, 2020, 28 (04): : 790 - 799
  • [38] A fast parallel high-precision summation algorithm based on AccSumK
    Lei, Xiaojun
    Gu, Tongxiang
    Graillat, Stef
    Jiang, Hao
    Qi, Jin
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2022, 406
  • [39] High-precision indoor positioning algorithm based on landmark matching
    Zhou L.
    Xian W.
    Gong W.
    Li S.
    Zhongguo Guanxing Jishu Xuebao/Journal of Chinese Inertial Technology, 2024, 32 (02): : 132 - 138
  • [40] A high-precision magnetometer
    Golubev, A. A.
    Ignat'ev, V. K.
    Nikitin, A. V.
    INSTRUMENTS AND EXPERIMENTAL TECHNIQUES, 2008, 51 (05) : 753 - 758