GPU加速光子外照射剂量模拟计算程序开发

Development of GPU Accelerated Photon Radiation Dose Calculation Program

  • 摘要: 针对人体辐射剂量计算,开发了面向体素模型的GPU加速光子外照射剂量蒙特卡罗计算程序GAPMC,利用GPU高并发计算的特性,建立了基于事件历史的GPU多线程并行蒙特卡罗模拟计算方法,采用了3D-DDA算法快速计算粒子在人体体素中的几何输运,光子物理模型采用Livermore模型,次级电子处理采用了就地沉积近似。与采用CPU计算的Geant4进行了对比,结果符合性较好。在双精度浮点计算下,GAPMC计算0.5~10 MeV光子相比于Geant4计算速度提升了887.5~1 028倍。针对粒子几何输运中体素数据访问存在空间局限性的特点,采用了GPU纹理内存保存体素索引数据,相比于将体素索引以一维数组保存在GPU全局内存,能将整体计算效率提升20%左右。另外构建了GAPMC单精度计算与双精度计算版本,单精度计算在保证计算结果一致性的情况下相比于双精度计算的计算速度进一步提升60%~114%,相较于CPU计算加速比达到1 454.4~2 366.2,可为核设施作业剂量实时监测、辐射防护应急响应提供高速剂量计算引擎。

     

    Abstract: The Monte Carlo method uses random sampling to simulate and solve physical and mathematical problems. By virtually tracking the complete transport process of radiation particles through the human body, it provides statistically reliable dose estimates and is widely regarded as the “gold standard” for radiation dosimetry. However, the high computational cost of a single Monte Carlo run makes it difficult to achieve fast and timely dose assessment in practice. To address this limitation, GAPMC, a GPU-accelerated Monte Carlo program, was developed for photon external dose calculation based on human voxel phantoms. An event-history-based parallel simulation strategy was implemented by exploiting the high concurrency of modern GPU architecture, where each GPU thread independently tracks every single photon history. For geometric particle transport within voxel geometries, a three-dimensional digital differential analyzer (3D-DDA) algorithm was employed to compute voxel boundary crossings efficiently. Cross-section data were taken from the EPICS2017 database. Photon interactions were modeled using the Livermore physics model, in which reaction cross-sections are sampled via the rejection sampling method. Secondary electrons were handled through a local energy deposition approximation, which is justified by the fact that the mean free path of electrons is smaller than the voxel size. To exploit the spatial locality inherent in voxel traversal, the voxel material index array was stored in GPU texture memory rather than as a one-dimensional array in global memory. Both single- and double-precision floating-point versions of GAPMC were developed and the computation speed was compared. Validation against the CPU-based Geant4 toolkit shows good agreement in dose calculations over a photon energy range of 0.5 MeV to 10 MeV, with whole-body effective dose deviations within 5%. In double-precision mode, GAPMC achieves acceleration factor of 887.5 to 1028 relative to Geant4. The use of texture memory for voxel indexing yields an additional performance improvement of approximately 20% compared to a global memory implementation. The single-precision version maintains result consistency with the double-precision version while delivering a further speedup of 60% to 114%, reaching a total acceleration factor of 1454.4 to 2366.2 relative to CPU-based Geant4. GAPMC is an effective GPU-based solution for photon dose calculation in voxel geometries. The combination of GPU parallelism, texture memory optimization, and floating-point precision flexibility provides substantial computational acceleration with acceptable accuracy sacrifice, demonstrating practical potential for rapid dose assessment in radiation protection applications.

     

/

返回文章
返回