Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Library for GPU-related statistical functions
Python C C++
Branch: master
Failed to load latest commit information.
examples Merge branch 'master' of
gpustats new discrete sampler
old misc for scipy paper
scripts benchmarking code for gpustats paper
.gitignore changing gpus after gpustats is loaded now supported
LICENSE added BSD license
README.rst Fix glaring typo.
dev_notes.rst added dev notes file nose testing stub



gpustats is a PyCUDA-based library implementing functionality similar to that present in scipy.stats. It implements a simple framework for specifying new CUDA kernels and extending existing ones. Here is a (partial) list of target functionality:

  • Probability density functions (pdfs). These are intended to speed up likelihood calculations in particular in Bayesian inference applications, such as in PyMC
  • Random variable generation using CURAND


Installation and testing

To install, run:

python install

If you have nose installed, you may run the test suite by running:

import gpustats


import gpustats

Some development guidelines

  • Use spaces (4 per indent), not tabs
  • Trim whitespace at the end of lines (most text editors will do this for you)
  • PEP8-consistent Python style


Cliburn Chan cliburn.chan (at) Andrew Cron ajc40 (at) Jacob Frelinger jacob.frelinger (at) Wes McKinney wesmckinn (at) Adam Richards adam.richards (at) Marc Suchard msuchard (at) Quanli Wang quanli (at) Mike West mw (at)


Requires working PyCUDA installation

Something went wrong with that request. Please try again.