QUDA  v1.1.0
A library for QCD on GPUs
Public Member Functions | List of all members
quda::RNG Class Reference

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 &param, unsigned long long seedin)
 Constructor that takes its metadata from a param. More...
 
void Release ()
 
void Init ()
 
unsigned long long Seed ()
 
__host__ __device__ __inline__ cuRNGStateState ()
 
void restore ()
 Restore CURAND array states initialization. More...
 
void backup ()
 Backup CURAND array states initialization. More...
 

Detailed Description

Class declaration to initialize and hold CURAND RNG states.

Definition at line 23 of file random_quda.h.

Constructor & Destructor Documentation

◆ RNG() [1/2]

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

Parameters
[in]metaThe field whose data we use
[in]seedSeed to initialize the RNG

◆ RNG() [2/2]

quda::RNG::RNG ( const LatticeFieldParam param,
unsigned long long  seedin 
)

Constructor that takes its metadata from a param.

Parameters
[in]paramThe param whose data we use
[in]seedSeed to initialize the RNG

Member Function Documentation

◆ backup()

void quda::RNG::backup ( )

Backup CURAND array states initialization.

◆ Init()

void quda::RNG::Init ( )

initialize curand rng states with seed

◆ Release()

void quda::RNG::Release ( )

free array

◆ restore()

void quda::RNG::restore ( )

Restore CURAND array states initialization.

◆ Seed()

unsigned long long quda::RNG::Seed ( )
inline

Definition at line 55 of file random_quda.h.

◆ State()

__host__ __device__ __inline__ cuRNGState* quda::RNG::State ( )
inline

Definition at line 57 of file random_quda.h.


The documentation for this class was generated from the following file: