Efficient Implementation of Bayesian Hierarchical Model to Study Space Time Variability of Latent Heat Flux

This paper describes an efficient implementation of Bayesian hierarchical model for space time variability of latent heat flux. Model parameters are estimated using Gibbs sampler. Many computations in the Gibbs sampling scheme are time intensive. Some time intensive computations in the model are matrix operations such as matrix multiplication, matrix inverse, matrix LU decomposition. We have used graphical processing unit (GPU) to run time intensive matrix operations. Some time intensive operations are transformed to matrix operations to take advantage of GPU. To run the model in GPU model is implemented in Compute Unified Device Architecture (CUDA). Two GPUs are used to run the model one is NVIDIA Graphics card Tesla C2075 with 448 cores and other is NVIDIA Graphics card GT 520 with 48 cores. To study the gain in speedup on the GPU we have implemented the model using single threaded C to run on CPU. A comparative study of implementation on CPU and the two GPUs is carried out for 100 iterations of the Gibbs sampler. We found 30-130 fold speedup on Tesla GPU as compared to single threaded CPU code.

[1]  Marc A. Suchard,et al.  Many-core algorithms for statistical phylogenetics , 2009, Bioinform..

[2]  A. Raftery,et al.  How Many Iterations in the Gibbs Sampler , 1991 .

[3]  D. Cocchi,et al.  Hierarchical space-time modelling of PM10 pollution , 2007 .

[4]  L. Mark Berliner,et al.  Spatiotemporal Hierarchical Bayesian Modeling Tropical Ocean Surface Winds , 2001 .

[5]  Bent Natvig,et al.  Modelling ocean wave climate with a Bayesian hierarchical space–time model and a log-transform of the data , 2012, Ocean Dynamics.

[6]  Adrian F. M. Smith,et al.  Sampling-Based Approaches to Calculating Marginal Densities , 1990 .

[7]  Bent Natvig,et al.  Bayesian Hierarchical Space–time Modeling of Earthquake Data , 2007 .

[8]  Dani Gamerman,et al.  Markov Chain Monte Carlo: Stochastic Simulation for Bayesian Inference , 1997 .

[9]  S. Sahu,et al.  A space-time model for joint modeling of ocean temperature and salinity levels as measured by Argo Floats , 2008 .

[10]  Arnaud Doucet,et al.  On the Utility of Graphics Cards to Perform Massively Parallel Simulation of Advanced Monte Carlo Methods , 2009, Journal of computational and graphical statistics : a joint publication of American Statistical Association, Institute of Mathematical Statistics, Interface Foundation of North America.

[11]  L. Mark Berliner,et al.  Hierarchical Bayesian Time Series Models , 1996 .

[12]  Vijay S. Pande,et al.  Accelerating molecular dynamic simulation on graphics processing units , 2009, J. Comput. Chem..

[13]  L. M. Berliner,et al.  Hierarchical Bayesian space-time models , 1998, Environmental and Ecological Statistics.

[14]  Adrian E. Raftery,et al.  Three Short Papers on Sampling-Based Inference: 1. How Many Iterations in the Gibbs Sampler? 2. Model Determination. 3. Spatial Statistics , 1991 .

[15]  Cliburn Chan,et al.  Understanding GPU Programming for Statistical Computation: Studies in Massively Parallel Massive Mixtures , 2010, Journal of computational and graphical statistics : a joint publication of American Statistical Association, Institute of Mathematical Statistics, Interface Foundation of North America.

[16]  Charles J. Geyer,et al.  Practical Markov Chain Monte Carlo , 1992 .

[17]  Sujit K. Sahu,et al.  Hierarchical Bayesian models for space-time air pollution data , 2012 .

[18]  Jorge Soriano Pinedo Matrix inversion speed up with CUDA , 2011 .