Giter VIP home page Giter VIP logo

clrand's Introduction

clRAND

C++ library of pseudo-random number generators for OpenCL devices

The PRNG is saved in a data structure which contains the command queue it will execute on, the program and kernels, and temporary buffers. The random bitstreams are created in the temporary buffer store and tracked. They are then copied from the temporary store to the desired destination. If the temporary store becomes empty, we will generate a new bitstream to replenish it fully. The storage in the temporary store should accomodate two random numbers from every workitem that will run

TODO:

  1. Need functions to test the various PRNGs

  2. Need function to generate the random initial seeds for PRNGs

  3. Need functions to generate floats and double that are uniformly distributed in [0, 1). a) Can be generated quickly with some sacrifice in number of possible values b) Can be generated accurately by using more uint or ulong random numbers to determine the exponent of the number

  4. Need functions to use floats and doubles that are uniformly distributed in [0, 1) to: a) Generate normally distributed random numbers b) Generate log-normally distributed random numbers b) Generate Poisson distributed random numbers

  5. Add XORWOW and Sobol Quasirandom number generators

clrand's People

Contributors

xfong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.