From 00543577ea9d59d1bf73837f26d16f41ef67724d Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Mon, 29 May 2023 20:34:12 +0800 Subject: feat(exp): Add expt_0528 Signed-off-by: KunoiSayami --- expt_0525.cu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'expt_0525.cu') diff --git a/expt_0525.cu b/expt_0525.cu index c753acd..36c8df6 100644 --- a/expt_0525.cu +++ b/expt_0525.cu @@ -65,7 +65,6 @@ Conference on Parallel and Distributed Systems, December 2012. // #include"cutil.h" // Comment this if cutil.h is not available // #include "cuda_runtime.h" #include "sortlib.cuh" -#include #include #include #include @@ -91,7 +90,7 @@ typedef unsigned long long LL; // Maximum level of a node in the skip list // #define MAX_LEVEL 32 -constexpr size_t MAX_LEVEL = 16; +constexpr size_t MAX_LEVEL = 32; // Number of threads per block // #define NUM_THREADS 512 @@ -653,7 +652,7 @@ int main(int argc, char **argv) { auto search_length = strtol(argv[2], nullptr, 10); auto insertion_length = strtol(argv[3], nullptr, 10); - if (insertion_length < sample_length) { + if (insertion_length < search_length) { printf("Search should smaller than insertion\n"); } @@ -756,7 +755,7 @@ int main(int argc, char **argv) { // Print kernel execution time in milliseconds - printf("%lu: %lf", search_length, time); + printf("%lu: %lf\n", search_length, time); // Check for errors // Move results back to host memory -- cgit v1.3.1