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

CUDPP application-level compact routines. More...

#include "cuda_util.h"
#include "cudpp_globals.h"
#include "cudpp_util.h"
#include "cudpp.h"
#include "cudpp_plan.h"
#include "cudpp_scan.h"
#include "kernel/compact_kernel.cuh"
#include <cstdlib>
#include <cstdio>
#include <assert.h>

Functions

Compact Functions
void calculateCompactLaunchParams (const unsigned int numElements, unsigned int &numThreads, unsigned int &numBlocks, unsigned int &numEltsPerBlock)
 Calculate launch parameters for compactArray(). More...
 
template<class T >
void compactArray (T *d_out, size_t *d_numValidElements, const T *d_in, const unsigned int *d_isValid, size_t numElements, const CUDPPCompactPlan *plan)
 Compact the non-zero elements of an array. More...
 
void allocCompactStorage (CUDPPCompactPlan *plan)
 Allocate intermediate arrays used by cudppCompact(). More...
 
void freeCompactStorage (CUDPPCompactPlan *plan)
 Deallocate intermediate storage used by cudppCompact(). More...
 
void cudppCompactDispatch (void *d_out, size_t *d_numValidElements, const void *d_in, const unsigned int *d_isValid, size_t numElements, const CUDPPCompactPlan *plan)
 Dispatch compactArray for the specified datatype. More...
 

Detailed Description

CUDPP application-level compact routines.

compact_app.cu