• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2024, Vol. 46 ›› Issue (08): 1349-1360.

• High Performance Computing • Previous Articles     Next Articles

A parallel fast neighbor searching algorithm for particle-based methods on CPU and GPU architectures in multi-scale simulation

DAI Chang-wei1,KONG Rui-lin1,JI Zhe1,2,3   

  1. (1.School of Software,Northwestern Polytechnical University,Xi’an 710129;
    2.Yangtze River Delta Research Institute,Northwestern Polytechnical University,Suzhou 215400;
    3.Shenzhen Research Institute,Northwestern Polytechnical University,Shenzhen 518063,China)
  • Received:2023-12-08 Revised:2024-03-18 Accepted:2024-08-25 Online:2024-08-25 Published:2024-09-02

Abstract: Particle-based methods are widely applied in the resolving of complex multi-scale physical phenomena in various science and engineering areas. In order to handle the challenge of increasing computational complexity and declining concurrency for the pair-wised particle searching procedure in massive multi-scale particle-based simulations, a new parallel fast neighbor searching algorithm, which features high-concurrency and low memory footprint, is developed and demonstrated on both many-core CPU and GPU architectures. An inter-level interaction strategy based on the concept of hierarchical nested data structure is proposed to resolve the issue of racing condition in cross-level particle search. An asymmetric mapping method is developed to eliminate the full mapping of particles on each level, which reduces the memory consumption. A set of numerical experiments show that, the proposed algorithm can handle multi-scale problems with particle volume ratio up to 108. Compared with traditional algorithm, the proposed algorithm can achieve 2x~8x speedups and lower memory consumption. The GPU-based implementation of the algorithm achieves state-of-the-art computational efficiency.

Key words: particle-based method, multi-scale simulation, fast neighbor searching, parallel computing