CUDPP  2.2
CUDA Data-Parallel Primitives Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
cudpp_rand.h File Reference

rand functionality header file - contains CUDPP interface (not public) More...

#include "cudpp_globals.h"
#include "cudpp.h"
#include "cudpp_plan.h"

Functions

void cudppRandDispatch (void *d_out, size_t num_elements, const CUDPPRandPlan *plan)
 Dispatches the rand function based on the plan. More...
 

Detailed Description

rand functionality header file - contains CUDPP interface (not public)

cudpp_rand.h

Function Documentation

void cudppRandDispatch ( void *  d_out,
size_t  numElements,
const CUDPPRandPlan plan 
)

Dispatches the rand function based on the plan.

This is the dispatch call which looks at the algorithm specified in plan and calls the appropriate random number generation algorithm.

Parameters
[out]d_outthe array allocated on device memory where the random numbers will be stored must be of type unsigned int
[in]numElementsthe number of elements in the array d_out
[in]planpointer to CUDPPRandPlan which contains the algorithm to run