A simple method for rejection sampling efficiency improvement on SIMT architectures

被引:11
作者
Ridley, Gavin [1 ]
Forget, Benoit [1 ]
机构
[1] MIT, Dept Nucl Sci & Engn, 77 Massachusetts Ave, Cambridge, MA 02139 USA
关键词
Rejection sampling; Graphics processing units; SIMT; Monte Carlo; Distributions; Parallel computing;
D O I
10.1007/s11222-021-10003-z
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We derive a probability distribution for the possible number of iterations required for a SIMT (single instruction multiple thread) program using rejection sampling to finish creating a sample across all threads. This distribution is found to match a recently proposed distribution from Chakraborty and Gupta (in: Communications in statistics: theory and methods, 2015) that was shown as a good approximation of certain datasets. This work demonstrates an exact application of this distribution. The distribution can be used to evaluate the relative merit of some sampling methods on the GPU without resort to numerical tests. The distribution reduces to the expected geometric distribution in the single thread per warp limit. A simplified formula to approximate the expected number of iterations required to obtain rejection iteration samples is provided. With this new result, a simple, efficient layout for assigning sampling tasks to threads on a GPU is found as a function of the rejection probability without recourse to more complicated rejection sampling methods.
引用
收藏
页数:11
相关论文
共 20 条
[1]   A review of parallel processing for statistical computation [J].
Adams, NM ;
Kirby, SPJ ;
Harris, P ;
Clegg, DB .
STATISTICS AND COMPUTING, 1996, 6 (01) :37-49
[2]   An economical acceptance-rejection algorithm for uniform random variate generation over constrained simplexes [J].
Ahmadi-Javid, Amir ;
Moeini, Asghar .
STATISTICS AND COMPUTING, 2016, 26 (03) :703-713
[3]  
[Anonymous], 2009, P HIGH PERF GRAPH
[4]  
[Anonymous], 2019, CUDA Toolkit Documentation v10.1
[5]   The mean, median, and mode of unimodal distributions: A characterization [J].
Basu, S ;
Dasgupta, A .
THEORY OF PROBABILITY AND ITS APPLICATIONS, 1997, 41 (02) :210-223
[6]   Exponentiated Geometric Distribution: Another Generalization of Geometric Distribution [J].
Chakraborty, Subrata ;
Gupta, Rameshwar D. .
COMMUNICATIONS IN STATISTICS-THEORY AND METHODS, 2015, 44 (06) :1143-1157
[7]  
Devroye L, 2006, HBK OPERAT RES MANAG, V13, P83, DOI 10.1016/S0927-0507(06)13004-2
[8]   SOME COMPUTER ORGANIZATIONS AND THEIR EFFECTIVENESS [J].
FLYNN, MJ .
IEEE TRANSACTIONS ON COMPUTERS, 1972, C 21 (09) :948-&
[9]  
Gautschi W., 1964, HDB MATH FUNCTIONS F, V10th ed., P295
[10]  
Kunz T, 2016, IEEE INT CONF ROBOT, P89, DOI 10.1109/ICRA.2016.7487120