https://hgpu.org/?p=5349
Implementation of Sequential Importance Sampling in GPGPU