Geant4是一个用于粒子物理的大型蒙特卡罗仿真计算机模拟工具包。Geant4的并行化对于提高仿真效率具有重要意义。采用ParGeant4在Event层次上实现了射线探测器的并行化仿真,在多核处理器单机和PC集群上考察了并行化对计算效率的影响,并记录其运行时间与对应的串行算法仿真进行了比较。结果表明,采用ParGeant4并行化后的程序较串行程序效率明显提高,提高效率依赖于样本数量;而采用PC集群的并行化程序效率提高更加显著。
Geant4 is a large and highly accurate Monte Carlo simulation software package used in particle physics field.Parallel computing is special important due to the precision of Monte Carlo simulation depends on the sampling quantity.In order to study the efficiency and prospects of parallelization of Geant4,a ParGeant4 toolkit was used to parallel a simulation application of neutron detector,evaluate its calculation efficiency and compare it with the same simulation using serial algorithm from the point of the running time.All the simulation tasks were executed on Multicore Processors PC and PC cluster sequentially.Result shows that the parallel version is more efficient than the original serial program and the improvement is obvious when the sampling number is huge,PC cluster parallel can offer higher efficient than the single PC multi-process parallel one.