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 条
  • [41] An Algorithm for Acquiring PRN Code in DSSS System Based on Sub-sampling
    Qian, Bo
    Yang, Li
    Feng, Yong-xin
    Pan, Cheng-sheng
    FGCN: PROCEEDINGS OF THE 2008 SECOND INTERNATIONAL CONFERENCE ON FUTURE GENERATION COMMUNICATION AND NETWORKING, VOLS 1 AND 2, 2008, : 327 - +
  • [42] Towards "mouldable code" via nested code graph transformation
    Kahl, Wolfram
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2014, 83 (02) : 225 - 234
  • [43] Improved Constructions of Nested Code Pairs
    Galindo, Carlos
    Geil, Olav
    Hernando, Fernando
    Ruano, Diego
    IEEE TRANSACTIONS ON INFORMATION THEORY, 2018, 64 (04) : 2444 - 2459
  • [44] Hybrid nested sampling algorithm for Bayesian model selection applied to inverse subsurface flow problems
    Elsheikh, Ahmed H.
    Wheeler, Mary F.
    Hoteit, Ibrahim
    JOURNAL OF COMPUTATIONAL PHYSICS, 2014, 258 : 319 - 337
  • [45] Bayesian inference on the Numerical INJection Analysis (NINJA) data set using a nested sampling algorithm
    Aylott, Benjamin
    Veitch, John
    Vecchio, Alberto
    CLASSICAL AND QUANTUM GRAVITY, 2009, 26 (11)
  • [46] An evolutionary nested sampling algorithm for Bayesian model updating and model selection using modal measurement
    Qian, Feng
    Zheng, Wei
    ENGINEERING STRUCTURES, 2017, 140 : 298 - 307
  • [47] Optimisation of sampling parameters for standardised exhaled breath sampling
    Doran, Sophie L. F.
    Romano, Andrea
    Hanna, George B.
    JOURNAL OF BREATH RESEARCH, 2018, 12 (01)
  • [48] New Prior Sampling Methods for Nested Sampling - Development and Testing
    Stokes, Barrie
    Tuyl, Frank
    Hudson, Irene
    BAYESIAN INFERENCE AND MAXIMUM ENTROPY METHODS IN SCIENCE AND ENGINEERING (MAXENT 2016), 2017, 1853
  • [49] Exploring phase space with nested sampling
    Yallup, David
    Janssen, Timo
    Schumann, Steffen
    Handley, Will
    EUROPEAN PHYSICAL JOURNAL C, 2022, 82 (08):
  • [50] Efficiently sampling nested Archimedean copulas
    Hofert, Marius
    COMPUTATIONAL STATISTICS & DATA ANALYSIS, 2011, 55 (01) : 57 - 70