CUDPP  2.3
CUDA Data-Parallel Primitives Library
scan_app.cu File Reference

CUDPP application-level scan routines. More...

#include <cstdlib>
#include <cstdio>
#include <assert.h>
#include "cuda_util.h"
#include "cudpp.h"
#include "cudpp_util.h"
#include "cudpp_plan.h"
#include "kernel/scan_kernel.cuh"
#include "kernel/vector_kernel.cuh"

Functions

Scan Functions
template<class T , bool isBackward, bool isExclusive, class Op >
void scanArrayRecursive (T *d_out, const T *d_in, T **d_blockSums, size_t numElements, size_t numRows, const size_t *rowPitches, int level)
 Perform recursive scan on arbitrary size arrays. More...
 
void allocScanStorage (CUDPPScanPlan *plan)
 Allocate intermediate arrays used by scan. More...
 
void freeScanStorage (CUDPPScanPlan *plan)
 Deallocate intermediate block sums arrays in a CUDPPScanPlan object. More...
 
template<typename T , bool isBackward, bool isExclusive>
void cudppScanDispatchOperator (void *d_out, const void *d_in, size_t numElements, size_t numRows, const CUDPPScanPlan *plan)
 
template<bool isBackward, bool isExclusive>
void cudppScanDispatchType (void *d_out, const void *d_in, size_t numElements, size_t numRows, const CUDPPScanPlan *plan)
 
void cudppScanDispatch (void *d_out, const void *d_in, size_t numElements, size_t numRows, const CUDPPScanPlan *plan)
 Dispatch function to perform a scan (prefix sum) on an array with the specified configuration. More...
 

Detailed Description

CUDPP application-level scan routines.

scan_app.cu