From 77796af33c0b45189b03839f725899c62db8ae71 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Tue, 30 May 2023 02:09:17 +0800 Subject: fix: Fix read helper bug Signed-off-by: KunoiSayami --- expt_0425.cu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'expt_0425.cu') 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 #include #include #include +#define ENABLE_SORT_TEST +#include "sortlib.cuh" std::vector 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); -- cgit v1.3.1