# Vector operations for accelerating expensive Bayesian computations -- a   tutorial guide

**Authors:** David J. Warne (1), Scott A. Sisson (2), Christopher Drovandi (1) ((1), Queensland University of Technology, (2) University of New South Wales)

arXiv: 1902.09046 · 2021-05-10

## TL;DR

This paper demonstrates how SIMD operations can significantly accelerate Bayesian computations on modern CPUs, providing practical techniques for leveraging parallel processing to improve performance.

## Contribution

It introduces the use of SIMD for Bayesian applications, showing practical implementation and performance gains using standard programming libraries.

## Key findings

- Up to 6x performance improvement with SIMD
- SIMD benefits are multiplicative with multi-core processing
- Provides practical techniques for SIMD exploitation in Bayesian computing

## Abstract

Many applications in Bayesian statistics are extremely computationally intensive. However, they are often inherently parallel, making them prime targets for modern massively parallel processors. Multi-core and distributed computing is widely applied in the Bayesian community, however, very little attention has been given to fine-grain parallelisation using single instruction multiple data (SIMD) operations that are available on most modern commodity CPUs and is the basis of GPGPU computing. In this work, we practically demonstrate, using standard programming libraries, the utility of the SIMD approach for several topical Bayesian applications. We show that SIMD can improve the floating point arithmetic performance resulting in up to $6\times$ improvement in serial algorithm performance. Importantly, these improvements are multiplicative to any gains achieved through multi-core processing. We illustrate the potential of SIMD for accelerating Bayesian computations and provide the reader with techniques for exploiting modern massively parallel processing environments using standard tools.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1902.09046/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/1902.09046/full.md

## References

59 references — full list in the complete paper: https://tomesphere.com/paper/1902.09046/full.md

---
Source: https://tomesphere.com/paper/1902.09046