From 1fbb943005ad78335f0b921be516b3df8140406d Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sun, 4 Jun 2023 18:34:21 +0800 Subject: --- expt_0503.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'expt_0503.cu') diff --git a/expt_0503.cu b/expt_0503.cu index 58f35aa..0ada96c 100644 --- a/expt_0503.cu +++ b/expt_0503.cu @@ -1,4 +1,5 @@ // Experimental content: Test branch performance +#define ENABLE_SORT_TEST #include "sortlib.cuh" #include @@ -59,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 + cuda_sample_length, - cudaPopulationItem[tid]) / + cudaSampleItem, cudaPopulationItem[tid]) / slice_size) - 1; cdf_result[index] = true; -- cgit v1.3.1