Code optimisation in a nested-sampling algorithm

被引:1
|
作者
Lewis, S. J. [1 ]
Ireland, D. G. [2 ]
Vanderbauwhede, W. [1 ]
机构
[1] Univ Glasgow, Sch Comp Sci, Glasgow G12 8QQ, Lanark, Scotland
[2] Univ Glasgow, SUPA Sch Phys & Astron, Glasgow G12 8QQ, Lanark, Scotland
基金
英国科学技术设施理事会;
关键词
Monte Carlo methods; General-Purpose computation on Graphics; Processing Units (GPGPU); Data analysis;
D O I
10.1016/j.nima.2015.03.006
中图分类号
TH7 [仪器、仪表];
学科分类号
0804 ; 080401 ; 081102 ;
摘要
The speed-up in program running time is investigated for problems of parameter estimation with nested sampling Monte Carlo methods. The example used in this study is to extract a polarisation observable from event-by-event data from meson photoproduction reactions. Various implementations of the basic algorithm were compared, consisting of combinations of single threaded versus multi-threaded, and CPU versus GPU versions. These were implemented in OpenMP and OpenCL. For the application under study, and with the number of events as used in our work, we find that straightforward multi-threaded CPU OpenMP coding gives the best performance; for larger numbers of events, OpenCL on the CPU performs better. The study also shows that there is a "break-even" point of the number of events where the use of GPUs helps performance. GPUs are not found to be generally helpful for this problem, due to the data transfer times, which more than offset the improvement in computation time. (C) 2015 The Authors. Published by Elsevier B.V.
引用
收藏
页码:105 / 109
页数:5
相关论文
共 50 条
  • [1] A nested sampling algorithm for cosmological model selection
    Mukherjee, P
    Parkinson, D
    Liddle, AR
    ASTROPHYSICAL JOURNAL, 2006, 638 (02): : L51 - L54
  • [2] Bayesian analysis of single-particle tracking data using the nested-sampling algorithm: maximum-likelihood model selection applied to stochastic-diffusivity data
    Thapa, Samudrajit
    Lomholt, Michael A.
    Krog, Jens
    Cherstvy, Andrey G.
    Metzler, Ralf
    PHYSICAL CHEMISTRY CHEMICAL PHYSICS, 2018, 20 (46) : 29018 - 29037
  • [3] A stochastic representation and sampling algorithm for nested Archimedean copulas
    Hofert, Marius
    JOURNAL OF STATISTICAL COMPUTATION AND SIMULATION, 2012, 82 (09) : 1239 - 1255
  • [4] Nested sampling
    Skilling, J
    BAYESIAN INFERENCE AND MAXIMUM ENTROPY METHODS IN SCIENCE AND ENGINEERING, 2004, 735 : 395 - 405
  • [5] Dynamic nested sampling: an improved algorithm for parameter estimation and evidence calculation
    Edward Higson
    Will Handley
    Michael Hobson
    Anthony Lasenby
    Statistics and Computing, 2019, 29 : 891 - 913
  • [6] Mean Shift Cluster Recognition Method Implementation in the Nested Sampling Algorithm
    Trassinelli, Martino
    Ciccodicola, Pierre
    ENTROPY, 2020, 22 (02)
  • [7] Dynamic nested sampling: an improved algorithm for parameter estimation and evidence calculation
    Higson, Edward
    Handley, Will
    Hobson, Michael
    Lasenby, Anthony
    STATISTICS AND COMPUTING, 2019, 29 (05) : 891 - 913
  • [8] The Nested QR Code
    Chou, Guo-Jian
    Wang, Ran-Zan
    IEEE Signal Processing Letters, 2020, 27 : 1230 - 1234
  • [9] The Nested QR Code
    Chou, Guo-Jian
    Wang, Ran-Zan
    IEEE SIGNAL PROCESSING LETTERS, 2020, 27 : 1230 - 1234
  • [10] A NOTE ON NESTED SAMPLING
    Ganguli, Mohonlal
    SANKHYA, 1941, 5 : 449 - 452