summaryrefslogtreecommitdiff
path: root/expt_0830.cu
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-06-04 19:35:54 +0800
committerKunoiSayami <[email protected]>2023-06-04 19:35:54 +0800
commit155b3a832c590c55ea3d89dd0783713f1d0f19c1 (patch)
treedfeb770865c77f76cf1ab5448f628b7e21bec483 /expt_0830.cu
parent1fbb943005ad78335f0b921be516b3df8140406d (diff)
fix: Fix compile error
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0830.cu')
-rw-r--r--expt_0830.cu5
1 files changed, 3 insertions, 2 deletions
diff --git a/expt_0830.cu b/expt_0830.cu
index 6f7e14a..fc05092 100644
--- a/expt_0830.cu
+++ b/expt_0830.cu
@@ -1,3 +1,5 @@
+#define ENABLE_SORT_TEST
+#define SORT_FIRST_VERSION
#include "sortlib.cuh"
#include <algorithm>
@@ -53,8 +55,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);