libspatialSEIR is a C++/OpenCL based framework for fitting Bayesian spatial SEIR and SEIRS compartmental epidemic models. The numerical heavy lifting is all done in C++ with the optional use of OpenCL calls to multi-core CPU’s and GPU’s to accelerate computation. The primary interface is provided via the included R package, which uses the Rcpp library to access the lower level C++ API.