Skip to content

[FEA]: Port random number generators from cuRand to Thrust #2510

Description

@aschaffer

Is this a duplicate?

Area

Thrust

Is your feature request related to a problem? Please describe.

Motivation: random number functionality in cunumeric. We don't have access to cuRand under all CPU-only builds (e.g. MacOS), but we'd still like to have access to its "exotic" generators that are available in cuRand but not the STL random module; e.g., XORWOW, MRG32K3A, PHILOX4_32_10, and a couple Mersenne Twister PRNGs.

Describe the solution you'd like

Specifically, we'd like to still benefit in Thrust from some of the more "exotic" generators in cuRand; e.g., XORWOW, MRG32K3A, PHILOX4_32_10, and a couple Mersenne Twister PRNG available there.

Describe alternatives you've considered

The only option for those specific generators is, to this day, cuRand.

Additional context

Since Thrust makes possible to cover GPU/CPU/OpenMP functionality just by changing the execution policy, it would be nice to get the new random generators for three different execution models, with essentially same code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions