有效提高可控源电磁法三维正演的效率为目前研究的热点。三维CSEM正演各频点计算相互独立,无数据依赖性,具有良好的并行性。单频点的大型稀疏复线性方程组快速生成与求解成为效率的关键。实现了基于MPI的频点间并行计算,提高了多频点计算效率;对于单频点,利用高性能并行多线程直接求解器实现了OpenMP并行求解大型稀疏复线性方程组;最终实现了基于多进程与多线程混合的MPI+OpenMP的多频点可控源三维正演并行计算,大幅度提高三维CSEM有限元正演的效率,最高加速比达到了8.914倍。
It is a hot topic to improve the efficiency of 3Dforward modeling by using the controlledsource electromagnetic method.Each frequency point of 3DCSEM forward modeling is independent of each other,has no data dependency,and has good parallelism.The fast generation and solution of single-frequency linear equations becomes the key to calculation efficiency.In this paper,MPI is used to realize the parallel computation,which improves greatly the computation efficiency of multi-frequency points.For single frequency points,the direct solver of a high performance parallel multithreading is used to solve large-scale sparse complex linear equations with OpenMP parallel.Finally,it realizes parallel computation of controlled source 3Dforward model-ing based on the multi-frequency point of MPI+OpenMP with the combination ofmulti process and multi threading,which greatly improves the efficiency of forward calculation,and makes the highest speed-up ratio reach 8.914 times.