盖亚AVU-GSR求解器:面向百亿亿次系统的CPU+GPU并行代码
The Gaia AVU-GSR solver: a CPU + GPU parallel code toward Exascale systems
AI总结:
针对盖亚卫星海量恒星天体测量求解,提出CPU+GPU并行LSQR算法,通过CUDA优化和I/O流水线处理协方差大数据,实现约28倍加速并投入生产。
摘要:
天体测量验证单元-全球球面重建(AVU-GSR)流程中的求解器模块旨在求解银河系中约10^8颗恒星的天体测量参数,以及盖亚卫星的姿态和仪器设置,以及参数化后牛顿参数γ,分辨率达到10-100微角秒。为执行此任务,代码使用迭代最小二乘(LSQR)算法求解线性方程组,其中系数矩阵庞大(10-50 TB)且稀疏,迭代在最小二乘意义上达到收敛时停止。每个LSQR步骤中执行的两次矩阵-向量乘积已移植到GPU,首先使用OpenACC,然后使用CUDA,与完全使用MPI+OpenMP在CPU上并行化的原始代码版本相比,分别获得约1.5倍和约14倍的加速。CUDA代码进一步优化,然后使用可跨不同GPU架构移植的编程框架进行移植,获得额外的约2倍加速因子。代码的一个关键部分在于协方差的计算,其总数为N_unk × (N_unk - 1)/2,占用约1 EB,其中N_unk约5×10^8为未知数总数。这一“大数据”问题无法用标准方法解决:我们定义了一个基于I/O的流程,由两个并发启动的作业组成,其中一个作业(即LSQR)写入文件,第二个作业读取文件,迭代计算协方差并删除它们。该流程在协方差元素数量达到约8×10^6之前没有显著瓶颈。该代码目前已在CINECA的Leonardo基础设施上投入生产运行。
英文摘要:
The solver module of the Astrometric Verification Unit - Global Sphere Reconstruction (AVU-GSR) pipeline aims to find the astrometric parameters of $\sim$$10^8$ stars in the Milky Way, besides the attitude and instrumental settings of the Gaia satellite and the parametrized post Newtonian parameter $γ$ with a resolution of 10-100 micro-arcseconds. To perform this task, the code solves a system of linear equations with the iterative Least Squares (LSQR) algorithm, where the coefficient matrix is large (10-50 TB) and sparse and the iterations stop when convergence is reached in the least squares sense. The two matrix-by-vector products performed at each LSQR step were GPU-ported, firstly with OpenACC and then with CUDA, resulting in a $\sim$$1.5$x and $\sim$$14$x speedup, respectively, over an original code version entirely parallelized on the CPU with MPI + OpenMP. The CUDA code was further optimized and then ported with programming frameworks portable across different GPU architectures, obtaining a further $\sim$$2$x acceleration factor. One critical section of the code consists in the computation of covariances, whose total number is $N_{\rm unk} \times (N_{\rm unk} - 1)/2$ and occupy $\sim$1 EB, being $N_{\rm unk}$$\sim$$5 \times 10^8$ the total number of unknowns. This "Big Data" issue cannot be faced with standard approaches: we defined an I/O-based pipeline made of two concurrently launched jobs, where one job, i.e., the LSQR, writes the files and the second job reads them, iteratively computes the covariances and deletes them. The pipeline does not present significant bottlenecks until a number of covariances elements equal to $\sim$$8 \times 10^6$. The code currently runs in production on Leonardo CINECA infrastructure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。