From 7ed6b1a55c3c0cfe30ec8379069ab92df26a4082 Mon Sep 17 00:00:00 2001 From: anapt Date: Sun, 28 Jan 2018 03:10:13 +0200 Subject: [PATCH] new dataset --- mean_shift_cuda/meanshift.cu | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mean_shift_cuda/meanshift.cu b/mean_shift_cuda/meanshift.cu index 782869e..0930c2e 100644 --- a/mean_shift_cuda/meanshift.cu +++ b/mean_shift_cuda/meanshift.cu @@ -5,10 +5,10 @@ #include "meanshift_utils.h" #include "meanshift_gpu_utils.h" -int DEVIATION = 1; -int NUMBER_OF_POINTS = 600; +int DEVIATION = 31000; +int NUMBER_OF_POINTS = 5000; int DIMENSIONS = 2; -const char *POINTS_FILENAME = "../data/X.bin"; +const char *POINTS_FILENAME = "../data/s4"; const char *LABELS_FILENAME = "../data/L.bin"; parameters params; @@ -21,9 +21,8 @@ int main(int argc, char **argv){ char *labels; params.epsilon = 0.0001; - params.verbose = false; + params.verbose = true; params.display = true; -printf("here::"); //get_args(argc, argv, ¶ms); //commented out while in development init(&vectors, &labels); @@ -31,7 +30,6 @@ printf("here::"); // tic gettimeofday (&startwtime, NULL); - printf("wtf"); iterations = meanshift(vectors, &shifted_points, DEVIATION, ¶ms); // toc @@ -39,9 +37,9 @@ printf("here::"); seq_time = (double)((endwtime.tv_usec - startwtime.tv_usec)/1.0e6 + endwtime.tv_sec - startwtime.tv_sec); -// printf("\nTotal number of iterations = %d\n", iterations); -// printf("%s wall clock time = %f\n","Mean Shift", seq_time); - printf("%f \n", seq_time); + printf("\nTotal number of iterations = %d\n", iterations); + printf("%s wall clock time = %f\n","Mean Shift", seq_time); +// printf("%f \n", seq_time); //TODO write output points to file -> plot later //save_matrix(shifted_points, iterations);