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 条
  • [21] Nested Lattice Sampling: A New Sampling Scheme Derived by Randomizing Nested Orthogonal Arrays
    Qian, Peter Z. G.
    Ai, Mingyao
    JOURNAL OF THE AMERICAN STATISTICAL ASSOCIATION, 2010, 105 (491) : 1147 - 1155
  • [22] NESTED CLASSIFICATION A 5 STAGE NESTED SAMPLING DESIGN
    HAZENBERG, G
    CHELIAK, WM
    FORESTRY CHRONICLE, 1980, 56 (01): : 29 - 29
  • [23] A bi-level optimisation approach for assembly line design using a nested genetic algorithm
    Leiber, Daria
    Reinhart, Gunther
    INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2021, 59 (24) : 7560 - 7575
  • [24] Nested Basin-Sampling
    Griffiths, Matthew
    Wales, David J.
    JOURNAL OF CHEMICAL THEORY AND COMPUTATION, 2019, 15 (12) : 6865 - 6881
  • [25] Nested sampling statistical errors
    Fowlie, Andrew
    Li, Qiao
    Lv, Huifang
    Sun, Yecheng
    Zhang, Jia
    Zheng, Le
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2023, 521 (03) : 4100 - 4108
  • [26] IMPORTANCE SAMPLING AND THE NESTED BOOTSTRAP
    HINKLEY, DV
    SHI, S
    BIOMETRIKA, 1989, 76 (03) : 435 - 446
  • [27] Computing Entropies with Nested Sampling
    Brewer, Brendon J.
    ENTROPY, 2017, 19 (08)
  • [28] Nested Sampling's Convergence
    Skilling, John
    BAYESIAN INFERENCE AND MAXIMUM ENTROPY METHODS IN SCIENCE AND ENGINEERING, 2009, 1193 : 277 - 291
  • [29] Sampling nested Archimedean copulas
    Mcneil, Alexander J.
    JOURNAL OF STATISTICAL COMPUTATION AND SIMULATION, 2008, 78 (06) : 567 - 581
  • [30] Nested sampling for physical scientists
    Nature Reviews Methods Primers, 2 (1):