cuRAND subset#

cuRAND subset (sim only) — a deterministic CPU RNG curand_init/curand/curand_uniform/curand_normal on a small counter-based generator (SplitMix64), so each (seed, sequence, offset) triple gives a reproducible independent stream — the property the examples rely on. The bit stream is NOT that of the real XORWOW/Philox generators.

Defined in code/simulator.h.

This page documents 11 symbols: 11 functions.

Functions#

Signature

Description

Availability

Location

Example

inline unsigned int curand(curandState* st)

sim only

simulator.h:3549

inline void curand_init(unsigned long long seed, unsigned long long sequence, unsigned long long offset, curandState* st)

sim only

simulator.h:3544

inline float curand_normal(curandState* st)

sim only

simulator.h:3559

inline double curand_normal_double(curandState* st)

sim only

simulator.h:3563

inline float curand_uniform(curandState* st)

curand_uniform returns (0, 1] like the real library.

sim only

simulator.h:3553

inline double curand_uniform_double(curandState* st)

sim only

simulator.h:3556

inline curandStatus_t curandCreateGenerator(curandGenerator_t* g, curandRngType_t )

sim only

simulator.h:3569

inline curandStatus_t curandDestroyGenerator(curandGenerator_t g)

sim only

simulator.h:3572

inline curandStatus_t curandGenerateUniform(curandGenerator_t g, float* out, size_t n)

sim only

simulator.h:3576

inline curandStatus_t curandGenerateUniformDouble(curandGenerator_t g, double* out, size_t n)

sim only

simulator.h:3580

inline curandStatus_t curandSetPseudoRandomGeneratorSeed(curandGenerator_t g, unsigned long long seed)

sim only

simulator.h:3573