diff options
Diffstat (limited to 'expt_0525.cu')
| -rw-r--r-- | expt_0525.cu | 7 |
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 |
