Frontiers of Data and Computing ›› 2024, Vol. 6 ›› Issue (2): 134-144.

CSTR: 32002.14.jfdc.CN10-1649/TP.2024.02.012

doi: 10.11871/jfdc.issn.2096-742X.2024.02.012

• Technology and Application • Previous Articles     Next Articles

Research on Parallel Acceleration of OpenFOAM Threads for Domestic Accelerator

SHANG Xiaomin1(),LI Qiang1,*(),GAO Lingyun2,3,TAO Shunan1,ZHOU Quan1,YUAN Wu2,3,LU Zhonghua2,3   

  1. 1. School of Computer Science and Technology, Qingdao University, Qingdao, Shandong 266071, China
    2. Computer Network Information Center, Chinese Academy of Sciences, Beijing 100083, China
    3. University of Chinese Academy of Sciences, Beijing 100049, China
  • Received:2023-04-28 Online:2024-04-20 Published:2024-04-26


[Background] With the refinement of computational fluid dynamics simulations, the demand for computing power from CFD software OpenFOAM continues to increase. The new “East” supercomputing system is a new type of home-grown heterogeneous supercomputer to satisfy the demand. [Purpose] OpenFOAM is optimized and accelerated by porting it to the Oriental Supercomputer. [Methods] Firstly, by analyzing the functional architecture of the “East” supercomputing system and OpenFOAM, a solver for the domestic accelerator is developed and the ported CUSP is used to call the underlying code of the domestic accelerator to realize the sparse storage format matrix vector multiplication and diagonal matrix preprocessing. Secondly, a parallel SpMV (matrix-vector multiplication) on a single-node card with multiple domestic accelerators is implemented. [Results] The work introduced in this paper is verified by the pitzDaily example provided by OpenFOAM, and the performance is evaluated through comparison with several comparative methods of acceleration, which shows our approach achieves a 19.7 times speedup. [Limitations] This study only realizes a parallel optimization of OpenFOAM on a single-node. [Conclusions] The results of this study are of great significance for unleashing the advantages of OpenFOAM in fluid mechanics and expanding the scope of the application of supercomputer software.

Key words: OpenFOAM, parallel computing, heterogeneous computing, domestic accelerator, porting optimization