The biggest mistake that can be made with quasi random numbers is to just use them in the same way as one uses pseudo random numbers. The real advantage of quasi Monte-Carlo shows up only after
samples, where is the number of dimensions of the problem. If one is using significantly less samples then it becomes very likely that the results are totally wrong. Therefore a dimensional reduction of the problem is often the first step when applying quasi Monte-Carlo methods.
The Brownian bridge is tailor-made to reduce the number of significant dimensions of a Monte-Carlo integration of a stochastic differential equation In his recent text-book  Mark Joshi shows how to use Brownian bridges efficiently for quasi Monte-Carlo pricing and he also outlines the QuantLib implementation. It has been shown in  that the overall statistical error of a structured equity portfolio has been reduced by a factor of three when switching from a pseudo random number generator to a Sobol Brownian bridge generator, which in turn means a speed-up factor of nine leaving the Monte Carlo error unchanged.
An efficient implementation of a Sobol Brownian bridge generator is therefore a standard building block for quasi Monte-Carlo option pricing. A CUDA 4.2 implementation for nVIDIA GPUs based on QuantLib 1.2 is available here. The interface and usage are closely related to QuantLib’s Sobol Brownian bridge generator for CPUs. The memory layout of the results on the GPU is CURAND_ORDERING_QUASI_DEFAULT. The zip file also contains a validation program, which checks that both versions of the Sobol Brownian bridge are generating the same results.
As the diagram above shows, the GPU (GTX 560) out-performance the CPU (email@example.comGHz) on average by a factor of 50 for single precision and by a factor of 12 for double precision.
 Mark Joshi, More Mathematical Finance
 Sebasien Gurrieri, An Analysis of Sobol Sequence and the Brownian Bridge
 Andre Bernemann, Raplh Schreyer, Klaus Spanderen, Accelerating Exotic Option Pricing and Model Calibration Using GPUs
3 thoughts on “The Sobol Brownian Bridge Generator on a GPU”
Nice post, thanks! Where can i find theoretical justification for the exp(d) rule?
IMO this “rule” goes back to the Koksma-Hlawka inequality and the fact the the star discrepancy inhere goes to zero with
The stated rule vastly overestimates the number of samples, so much that it is as good as no rule at all.
Your observation is likely more related to Sobol initialization itself, rather than to quasi-random numbers in general. If you use a random scrambling (modulo, Owen or digital) with a single multi-dimensional random sample, it will give an accurate price for a GBM discretized with 1000 steps on 64K paths, without any BB use. There is a paper from Gurrieri around this issue with Sobol.
BB makes it much more efficient, but QMC still works without it, and without e^1000 samples.