summaryrefslogtreecommitdiff
path: root/expt_0525.cu
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-05-29 20:34:12 +0800
committerKunoiSayami <[email protected]>2023-05-29 20:34:12 +0800
commit00543577ea9d59d1bf73837f26d16f41ef67724d (patch)
treed78351153b173fa96abf907ac5f657c20f0e91ba /expt_0525.cu
parent6e7212a8e52d6768bb8fdae92483aeab09e32807 (diff)
feat(exp): Add expt_0528
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0525.cu')
-rw-r--r--expt_0525.cu7
1 files changed, 3 insertions, 4 deletions
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 <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
@@ -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