summaryrefslogtreecommitdiff
path: root/expt_0406.cu
diff options
context:
space:
mode:
Diffstat (limited to 'expt_0406.cu')
-rw-r--r--expt_0406.cu5
1 files changed, 4 insertions, 1 deletions
diff --git a/expt_0406.cu b/expt_0406.cu
index 96533c9..30ee7c4 100644
--- a/expt_0406.cu
+++ b/expt_0406.cu
@@ -1,3 +1,4 @@
+#include "sortlib.cuh"
#include <algorithm>
#include <cassert>
#include <cstdio>
@@ -55,7 +56,9 @@ __global__ void kernel(unsigned long step, const double slice_size) {
auto tid = step * (blockIdx.x * blockDim.x + threadIdx.x) + i;
// printf("%d\n", tid);
- auto index = (int)(sample_cdf(cudaPopulationItem[tid]) / slice_size);
+ auto index = (int)(FactorySort::sample_cdf(cudaSampleItem, length,
+ cudaPopulationItem[tid]) /
+ slice_size);
cdf_result[index] = true;
}