×

Parallel Gibbs sampler using butterfly-patterned partial sums

  • US 10,157,346 B2
  • Filed: 05/15/2015
  • Issued: 12/18/2018
  • Est. Priority Date: 06/26/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for parallel random sampling from a plurality of discrete probability distributions by one or more multiprocessors, wherein the method comprises:

  • initializing a partial sums table based on a matrix product of parameters for the plurality of discrete probability distributions, wherein the partial sums table comprises a plurality of blocks, each of which has a maximum size W, which is a value that is based on a number of threads in a warp of at least one of the one or more multiprocessors;

    applying one or more iterations of butterfly patterned replacements to each of the plurality of blocks such that a single row of each of the plurality of blocks is un-transposed; and

    drawing, in parallel from each of the plurality of discrete probability distributions, at least one respective z value, wherein each parallel drawing performs, respectively;

    a first binary search on the single un-transposed row of each of the plurality of blocks to determine a candidate block, anda second binary search within the candidate block to draw the at least one respective z value;

    wherein the method is performed by one or more computing devices.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×