GPU Workshop Sample Code
 All Data Structures Namespaces Files Functions Variables Macros Pages
Namespaces | Constant Groups | Macros | Functions
mycuda_random.h File Reference
#include <curand_kernel.h>

Go to the source code of this file.

Namespaces

 mycuda_random
 Kernels for generating parallel streams of random numbers.
 

Constant Groups

 mycuda_random
 Kernels for generating parallel streams of random numbers.
 

Macros

#define SQRT2   1.414213562373095f
 
#define ONE_OVER_SQRT2   0.707106781186547f
 

Functions

__global__ void mycuda_random::random_init (curandState_t *state, const int seed, const int n)
 
__global__ void mycuda_random::random_normal (float *z, curandState_t *state, const int n)
 
__global__ void mycuda_random::random_uniform (float *z, curandState_t *state, const int n)
 
template<typename T >
__host__ __device__ T mycuda_random::norm_cdf_inv (T q)
 
template<typename T >
__host__ __device__ T mycuda_random::norm_cdf (T z)
 

Macro Definition Documentation

#define ONE_OVER_SQRT2   0.707106781186547f

Definition at line 3 of file mycuda_random.h.

#define SQRT2   1.414213562373095f

Definition at line 2 of file mycuda_random.h.