期刊文献+

马尔科夫链蒙特卡洛算法并行化设计与性能分析 被引量:3

PARALLEL DESIGN AND PERFORMANCE ANALYSIS OF MARKOV CHAIN MONTE CARLO ALGORITHM
下载PDF
导出
摘要 马尔科夫链蒙特卡洛MCMC(Markov Chain Monte Carlo)算法广泛应用于地球系统模型中参数不确定性分析和模拟。由于地球环境科学数据的高维度、大容量特性,迫切需求高性能的MCMC算法满足应用需求。采用数据分治法实现该算法的多核并行化。利用静态和动态分配策略将算法中的多个输入链分配到各CPU;独立计算并通过共享内存实现进程间通信;主进程回收各单元计算结果,合成最终的马尔可夫链输出矩阵。采用控制变量法分析不同样本和马尔可夫链数量下的算法加速情况。结果表明在计算规模较大、动态负载均衡的条件下易于获得较好的加速比,在4个CPU以内时效果显著,之后随着CPU增加加速效果出现波动或趋于稳定。研究表明并行化MCMC能够利用多核CPU硬件设施获得加速效果,更多核数的加速性能存在进一步优化的空间。 Markov chain Monte Carlo (MCMC) algorithm is widely used in the uncertain analysis and simulation of model parameters in the domain of earth system science. Due to the high dimension and high volume characteristic of earth environment data, it is urgent to develop a high performance version of MCMC algorithm. In this paper, we used the data 'divide and conquer' strategy to convert the classic MCMC to a multi-core parallel method. Firstly, the input Markov chains were assigned to multiple CPU cores using static or dynamic load balance plan. Secondly, every standalone core computed the Markov chains assigned by the main process, and the communication between the cores was realized through the sharing memory in the computer. Finally, the main process collected the output Markov chains from every CPU core and aggregated to a Markov chains matrix. The speedup of this parallel MCMC method was tested by selecting different sample size and input Markov chains number. The results indicated that the parallel MCMC got better speedup performance when given more computing task to the CPU cores, as well as using a dynamic load balance plan when assigned the task to every CPU core. This study showed that parallel version of MCMC method could fully use the hardware of modern computer to obtain acceleration. In our future work, the speedup in the case of more than 4 CPU cores would be further optimized.
出处 《计算机应用与软件》 2017年第12期250-255,272,共7页 Computer Applications and Software
基金 国家自然科学基金项目(41601478) 国家重点研发计划项目(2016YFC0500103) 中科院STS项目(KFJ-SW-STS-167) 中科院地理资源所青年启动基金 资源与环境信息系统国家重点实际室开放基金项目(2016)
关键词 马尔可夫链蒙特卡洛算法 分治法则 多核计算 共享内存 加速性能 MCMC Divide and conquer Multi-core computing Sharing memory Speedup
  • 相关文献

参考文献7

二级参考文献88

  • 1王家映.地球物理资料非线性反演方法讲座(二) 蒙特卡洛法[J].工程地球物理学报,2007,4(2):81-85. 被引量:31
  • 2刘乐平,张美英,李姣娇.基于WinBUGS软件的贝叶斯计量经济学[J].东华理工学院学报(社会科学版),2007,26(2):101-107. 被引量:17
  • 3李鹏,汪芙平,王赞基.时变多径信道中通信信号调制识别算法[J].清华大学学报(自然科学版),2007,47(7):1097-1100. 被引量:2
  • 4Geman S, Stochastic Relaxation. Gibbs Distribution and the Bayesian Restoration of Images [J]. IEEE Transactions on Pattern Analysis and Machine Intelligence,1984,(6).
  • 5Metropolis N. Equations of State Calculations by Fast Computing Machine[J].Journal of Chemical Physics,1953,(21).
  • 6Scollnik.D.P.M.Actuarial Modeling with MCMC and BUGS[J].North American Actuarial Journal,2001,(20).
  • 7SheldonMRoss著;王兆军等译.统计模拟(第四版).北京:人民邮电出版社,2007:203~206.
  • 8Hammersley J M and Handscomb D C. Monte Carlo Methods. New York: Chapman and Hall, 1964.
  • 9Keilis-Borok V I and Yanovskaya T B. Inverse problems of seismology. Geophys J , 1967, 13(1-3) : 223--234.
  • 10Press F. Earth models obtained by Monte Carlo inversion. JGeophysRes, 1968, 73(16): 5223~5234.

共引文献134

同被引文献34

引证文献3

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部