CUDPP 1.1
|
CUDPP application-level compact routines. More...
#include "cudpp_globals.h"
#include "cudpp_util.h"
#include "cudpp.h"
#include "cudpp_plan.h"
#include "cudpp_scan.h"
#include "kernel/compact_kernel.cu"
#include <cutil.h>
#include <cstdlib>
#include <cstdio>
#include <assert.h>
Functions | |
Compact Functions | |
void | calculatCompactLaunchParams (const unsigned int numElements, unsigned int &numThreads, unsigned int &numBlocks, unsigned int &numEltsPerBlock) |
Calculate launch parameters for compactArray(). | |
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. | |
void | allocCompactStorage (CUDPPCompactPlan *plan) |
Allocate intermediate arrays used by cudppCompact(). | |
void | freeCompactStorage (CUDPPCompactPlan *plan) |
Deallocate intermediate storage used by cudppCompact(). | |
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. |
CUDPP application-level compact routines.