QUDA  v1.1.0
A library for QCD on GPUs
Classes | Namespaces | Typedefs | Functions
random_quda.h File Reference
#include <lattice_field.h>
#include <curand_kernel.h>

Go to the source code of this file.

Classes

class  quda::RNG
 Class declaration to initialize and hold CURAND RNG states. More...
 
struct  quda::uniform< Real >
 
struct  quda::uniform< float >
 
struct  quda::uniform< double >
 
struct  quda::normal< Real >
 
struct  quda::normal< float >
 
struct  quda::normal< double >
 

Namespaces

 quda
 

Typedefs

typedef struct curandStateMRG32k3a quda::cuRNGState
 

Functions

template<class Real >
__device__ Real quda::Random (cuRNGState &state, Real a, Real b)
 Return a random number between a and b. More...
 
template<>
__device__ float quda::Random< float > (cuRNGState &state, float a, float b)
 
template<>
__device__ double quda::Random< double > (cuRNGState &state, double a, double b)
 
template<class Real >
__device__ Real quda::Random (cuRNGState &state)
 Return a random number between 0 and 1. More...
 
template<>
__device__ float quda::Random< float > (cuRNGState &state)
 
template<>
__device__ double quda::Random< double > (cuRNGState &state)