Parallelization of flash X-ray radiography Monte Carlo code
-
摘要: 研究了闪光X射线辐射照像蒙特卡罗程序(FXRMC)在MPI平台下的并行计算实现,给出了实现过程中并行随机数的产生方法。对并行程序的测试结果表明:并行程序与串行程序结果一致,加速比比较理想,呈线性增长,并行效率在16个处理器上可达80%以上。算例的结果说明了并行化可有效地解决程序计算散射技术性能时的耗时问题,从而有效化解FXRMC耗时和大规模计算的困难,提高了FXRMC程序的计算规模和计算速度,达到了研究要求。 (Institute of Fluid Physics, CAEP, P. O. Box 919-105, Mianyang 621900, China)Abstract: MPI parallelization of Monte Carlo code FXRMC for flash X-ray radiography is investigated, and the method of generating parallel random numbers is presented. Test resultsshow that the results of both parallel and sequential codes are identical. The acceleration ratio is linear to the number of processors, and the parallel efficiency exceeds 80% for 16 processors. Calculation examples indicate that parallelization has effectively solved the time-consuming problem of the code in the process of computing scattering, thus improving calculation scale and speed of FXRMC.
-
Key words:
- Monte Carlo /
- FXRMC /
- MPI parallelization /
- pseudo-random number
点击查看大图
计量
- 文章访问数: 1482
- HTML全文浏览量: 244
- PDF下载量: 248
- 被引次数: 0