From baf2b887a66f897cafc2b8400d91878f9a241ae9 Mon Sep 17 00:00:00 2001 From: anapt Date: Fri, 26 Jan 2018 19:35:03 +0200 Subject: [PATCH] device mem allocation timer --- mean_shift_cuda/meanshift_gpu_utils.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mean_shift_cuda/meanshift_gpu_utils.cu b/mean_shift_cuda/meanshift_gpu_utils.cu index 7c444bd..58fd600 100644 --- a/mean_shift_cuda/meanshift_gpu_utils.cu +++ b/mean_shift_cuda/meanshift_gpu_utils.cu @@ -9,6 +9,9 @@ cudaDeviceProp device_properties; +struct timeval startwtime, endwtime; +double seq_time; + //Based on https://stackoverflow.com/a/28113186 //Pio psagmeno link https://www.cs.virginia.edu/~csadmin/wiki/index.php/CUDA_Support/Choosing_a_GPU void set_GPU(){