From ea8c3aa3705ebc1f73a49b6581e09b072d2429a7 Mon Sep 17 00:00:00 2001 From: anapt Date: Fri, 26 Jan 2018 19:46:25 +0200 Subject: [PATCH] verbose --- mean_shift_cuda/meanshift.cu | 10 +++++----- mean_shift_cuda/meanshift_gpu_utils.cu | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/mean_shift_cuda/meanshift.cu b/mean_shift_cuda/meanshift.cu index dd1b2e5..a043691 100644 --- a/mean_shift_cuda/meanshift.cu +++ b/mean_shift_cuda/meanshift.cu @@ -21,7 +21,7 @@ int main(int argc, char **argv){ char *labels; params.epsilon = 0.0001; - params.verbose = true; + params.verbose = false; params.display = true; //get_args(argc, argv, ¶ms); //commented out while in development @@ -38,10 +38,10 @@ int main(int argc, char **argv){ gettimeofday (&endwtime, NULL); seq_time = (double)((endwtime.tv_usec - startwtime.tv_usec)/1.0e6 + endwtime.tv_sec - startwtime.tv_sec); - if (params.verbose){ - printf("\nTotal number of iterations = %d\n", iterations); - printf("%s wall clock time = %f\n","Mean Shift", seq_time); - } + + printf("\nTotal number of iterations = %d\n", iterations); + printf("%s wall clock time = %f\n","Mean Shift", seq_time); + //TODO write output points to file -> plot later //save_matrix(shifted_points, iterations); diff --git a/mean_shift_cuda/meanshift_gpu_utils.cu b/mean_shift_cuda/meanshift_gpu_utils.cu index 96f0040..c42e9cc 100644 --- a/mean_shift_cuda/meanshift_gpu_utils.cu +++ b/mean_shift_cuda/meanshift_gpu_utils.cu @@ -90,9 +90,8 @@ int meanshift(double **original_points, double ***shifted_points, int deviation gettimeofday (&end, NULL); seq = (double)((end.tv_usec - start.tv_usec)/1.0e6 + end.tv_sec - start.tv_sec); - if (params.verbose){ - printf("%s wall clock time = %f\n","Device memory allocation", seq); - } + + printf("%s wall clock time = %f\n","Device memory allocation", seq); } // finds pairwise distance matrix (inside radius)