GPUMLib  0.2.2
GPU Machine Learning Library
Static Public Member Functions | List of all members
Random Class Reference

Class for generating random values on the device. Uses the CURAND library. More...

#include <random.h>

Static Public Member Functions

static void CleanUp ()
 Destroys the existing random generator and frees the memory associated with its state.
 
static void SetSeed (unsigned long long seed, curandRngType_t generatorType=CURAND_RNG_PSEUDO_DEFAULT)
 
static void Fill (DeviceArray< float > &a)
 

Detailed Description

Class for generating random values on the device. Uses the CURAND library.

Definition at line 33 of file random.h.

Member Function Documentation

void Fill ( DeviceArray< float > &  a)
static

Fills a device array with random numbers between 0 and 1.

Parameters
aarray to fill

Definition at line 56 of file random.cu.

void SetSeed ( unsigned long long  seed,
curandRngType_t  generatorType = CURAND_RNG_PSEUDO_DEFAULT 
)
static

Set the seed value of the pseudorandom number generator.

Parameters
seedthe new seed to be used.
generatorTypeGenerator type. For more information see the CURAND documentation. Valid values include: CURAND_RNG_PSEUDO_DEFAULT, CURAND_RNG_PSEUDO_XORWOW, CURAND_RNG_QUASI_DEFAULT, CURAND_RNG_QUASI_SOBOL32, CURAND_RNG_QUASI_SCRAMBLED_SOBOL32, CURAND_RNG_QUASI_SOBOL64, CURAND_RNG_QUASI_SCRAMBLED_SOBOL64
Examples:
DBNapp.cpp.

Definition at line 47 of file random.cu.


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