summaryrefslogtreecommitdiff
path: root/expt_0425.cu
diff options
context:
space:
mode:
Diffstat (limited to 'expt_0425.cu')
-rw-r--r--expt_0425.cu7
1 files changed, 3 insertions, 4 deletions
diff --git a/expt_0425.cu b/expt_0425.cu
index c4ea6d5..a1de92f 100644
--- a/expt_0425.cu
+++ b/expt_0425.cu
@@ -1,11 +1,11 @@
// Experimental content: Branch custom search between binary search
-#include "sortlib.cuh"
-
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <vector>
+#define ENABLE_SORT_TEST
+#include "sortlib.cuh"
std::vector<unsigned long long> population_vector, sample_vector,
le_sample_vector;
@@ -57,8 +57,7 @@ __global__ void kernel(unsigned long step, const double slice_size,
// printf("%d\n", tid);
auto index = (int)(custom_sort.sample_cdf_custom_version(
- cudaSampleItem, cudaSampleItem + SAMPLE_LENGTH,
- cudaPopulationItem[tid]) /
+ cudaSampleItem, cudaPopulationItem[tid]) /
slice_size) -
1;
// printf("%llu %d\n", cudaPopulationItem[tid], index);