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_0406.cu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'expt_0406.cu') 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 #include #include @@ -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; } -- cgit v1.3.1