cuRAND Device APIs (nvmath. device. random
)#
Overview#
This module provides access to the device APIs of NVIDIA cuRAND library, which allows random number generation on the GPU. Detailed documentation of cuRAND device APIs can be found in the cuRAND documentation.
API Reference#
Utilities#
|
Compile the random device APIs with the specified compute capability. |
Bit Generator and State APIs (nvmath. device. random
)#
|
Initialize the RNG state. |
|
Generate 32 or 64 bits of randomness depending on the provided bit generator. |
|
Generate a 4-tuple of 32-bits of randomness from a Philox4_32_10 generator. |
States of MRG32k3a bit generator. |
|
States of Philox4_32_10 bit generator. |
|
States of Sobol32 bit generator. |
|
States of Sobol64 bit generator. |
|
States of ScrambledSobol32 bit generator. |
|
States of ScrambledSobol64 bit generator. |
|
|
States of XORWOW bit generator. |
Distribution Sampling APIs (nvmath. device. random
)#
|
Sample a float from normal distribution using the specified bit generator state. |
|
Sample a double from normal distribution using the specified bit generator state. |
|
Sample two floats from normal distribution using the specified bit generator state. |
|
Sample two doubles from normal distribution using the specified bit generator state. |
|
Sample four floats from normal distribution using the specified bit generator state. |
|
Sample a float from log-normal distribution using the specified bit generator state. |
|
Sample a double from log-normal distribution using the specified bit generator state. |
|
Sample two floats from log-normal distribution using the specified bit generator state. |
|
Sample two doubles from log-normal distribution using the specified bit generator state. |
|
Sample four floats from log-normal distribution using the specified bit generator state. |
|
Sample a uint from Poisson distribution using the specified bit generator state. |
|
Sample four uints from Poisson distribution using the specified bit generator state. |
|
Sample a float from uniform distribution using the specified bit generator state. |
|
Sample a double from uniform distribution using the specified bit generator state. |
|
Sample two doubles from uniform distribution using the specified bit generator state. |
|
Sample four floats from uniform distribution using the specified bit generator state. |
Skip Ahead APIs (nvmath. device. random
)#
|
Update the bit generator state to skip ahead |
|
Update the bit generator state to skip ahead |
|
Update the bit generator state to skip ahead |
Helper Host APIs (nvmath. device. random_helpers
)#
|
Get direction vectors for 32-bit quasirandom number generation. |
|
Get direction vectors for 64-bit quasirandom number generation. |
|
Get scramble constants for 32-bit scrambled Sobol' . |
|
Get scramble constants for 64-bit scrambled Sobol' . |
|
See |