Ocean General Circulation Model(OGCM)is a computer simulation tool based on physical principles and mathematical equations,aiming at studying global ocean circulation and its impact on the climate system.Its diverse r...Ocean General Circulation Model(OGCM)is a computer simulation tool based on physical principles and mathematical equations,aiming at studying global ocean circulation and its impact on the climate system.Its diverse resolutions and large computational data make parallel optimization a research hotspot.In the present study,we redesign the OGCM under a unified dynamic framework of serial versions(based on an unstructured grid)for the first time with a MPI parallel algorithm.Specifically,our work mainly consists of the following two parts:(1)we first change the model from a raw serial program to a parallel program that supports communication between multiple CPU cores.(2)In response to the problem of a sharp decrease in parallel efficiency as the number of CPU cores increases in the parallel optimized mode,we optimize the grid coding of the original model and proposed a new boundary communication scheme.We conduct single-node and multi-node experiments on a multi-CPU cluster to evaluate the proposed approach.Using the original OGCM-initially limited to serial execution-as a baseline,we achieve a 175.91×speedup on 640 cores.Afterwards,we extend the parallel version to multiple nodes,with strong scaling parallel efficiency of 42.2%on 8 nodes using 320 cores.展开更多
基金supported by the National Key Research and Development Program of China(2022YFE0195900)Beijing Huairou Science City Achievement Implementation Project(Z231100006623004)+2 种基金the National Key Research and Development Program of China(2022YFC3104805)the Strategic Priority Research Program of the Chinese Academy of Sciences(Grant No.XDB0500303)the GHfund A(202407011963)。
文摘Ocean General Circulation Model(OGCM)is a computer simulation tool based on physical principles and mathematical equations,aiming at studying global ocean circulation and its impact on the climate system.Its diverse resolutions and large computational data make parallel optimization a research hotspot.In the present study,we redesign the OGCM under a unified dynamic framework of serial versions(based on an unstructured grid)for the first time with a MPI parallel algorithm.Specifically,our work mainly consists of the following two parts:(1)we first change the model from a raw serial program to a parallel program that supports communication between multiple CPU cores.(2)In response to the problem of a sharp decrease in parallel efficiency as the number of CPU cores increases in the parallel optimized mode,we optimize the grid coding of the original model and proposed a new boundary communication scheme.We conduct single-node and multi-node experiments on a multi-CPU cluster to evaluate the proposed approach.Using the original OGCM-initially limited to serial execution-as a baseline,we achieve a 175.91×speedup on 640 cores.Afterwards,we extend the parallel version to multiple nodes,with strong scaling parallel efficiency of 42.2%on 8 nodes using 320 cores.