From 155b3a832c590c55ea3d89dd0783713f1d0f19c1 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sun, 4 Jun 2023 19:35:54 +0800 Subject: fix: Fix compile error Signed-off-by: KunoiSayami --- expt_0501.cu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'expt_0501.cu') diff --git a/expt_0501.cu b/expt_0501.cu index dcd25f5..7e63ae6 100644 --- a/expt_0501.cu +++ b/expt_0501.cu @@ -60,8 +60,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