QUDA
v1.1.0
A library for QCD on GPUs
|
Class declaration to initialize and hold CURAND RNG states. More...
#include <random_quda.h>
Public Member Functions | |
RNG (const LatticeField &meta, unsigned long long seedin) | |
allocate curand rng states array in device memory More... | |
RNG (const LatticeFieldParam ¶m, unsigned long long seedin) | |
Constructor that takes its metadata from a param. More... | |
void | Release () |
void | Init () |
unsigned long long | Seed () |
__host__ __device__ __inline__ cuRNGState * | State () |
void | restore () |
Restore CURAND array states initialization. More... | |
void | backup () |
Backup CURAND array states initialization. More... | |
Class declaration to initialize and hold CURAND RNG states.
Definition at line 23 of file random_quda.h.
quda::RNG::RNG | ( | const LatticeField & | meta, |
unsigned long long | seedin | ||
) |
allocate curand rng states array in device memory
Constructor that takes its metadata from a field
[in] | meta | The field whose data we use |
[in] | seed | Seed to initialize the RNG |
quda::RNG::RNG | ( | const LatticeFieldParam & | param, |
unsigned long long | seedin | ||
) |
Constructor that takes its metadata from a param.
[in] | param | The param whose data we use |
[in] | seed | Seed to initialize the RNG |
void quda::RNG::backup | ( | ) |
Backup CURAND array states initialization.
void quda::RNG::Init | ( | ) |
initialize curand rng states with seed
void quda::RNG::Release | ( | ) |
free array
void quda::RNG::restore | ( | ) |
Restore CURAND array states initialization.
|
inline |
Definition at line 55 of file random_quda.h.
|
inline |
Definition at line 57 of file random_quda.h.