#include "cudpp_util.h"
#include "cudpp_sort.h"
#include "cudpp_scan.h"
#include "kernel/sort_kernel.cu"
#include <cutil.h>
#include <cstdlib>
#include <cstdio>
Functions | |
Sort Functions | |
| template<class T> | |
| void | populateSortPlan (CUDPPSortPlan *plan) |
| From the programmer-specified sort configuration, generate the internal CUDPPSortConfigInternal structure for performing the sort. | |
| void | allocSortStorage (CUDPPSortPlan *plan) |
| Allocate intermediate storage for sort. | |
| void | freeSortStorage (CUDPPSortPlan *plan) |
| Deallocate intermediate storage for sort. | |
| template<class T> | |
| __host__ void | sortChunks (T *d_out, const T *d_in, const CUDPPSortPlan *plan) |
| Sorts input in chunks. | |
| template<class T> | |
| __host__ void | mergeChunks (T *d_data, const CUDPPSortPlan *plan) |
| Merges sorted chunks together into fully sorted output. | |
| template<class T> | |
| void | sortRadixGlobal (T *d_out, const T *d_in, size_t numElements, const CUDPPSortPlan *plan) |
| Performs global radix sort, with no merge. | |
| template<class T> | |
| void | sortApp (T *d_out, const T *d_in, size_t numElements, const CUDPPSortPlan *plan) |
| Main sort routine. | |
| void | cudppSortDispatch (void *d_out, const void *d_in, size_t numElements, const CUDPPSortPlan *plan) |
| Dispatch sortApp() for the specified datatype. | |
1.5.5