From ee3fa9accf187d750d1dcf7a095fcc24175a149b Mon Sep 17 00:00:00 2001 From: anapt Date: Tue, 6 Feb 2018 16:01:35 +0200 Subject: [PATCH] calculate norm - 2nd commit --- mean_shift_cuda/meanshift_gpu_utils.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mean_shift_cuda/meanshift_gpu_utils.cu b/mean_shift_cuda/meanshift_gpu_utils.cu index b49899d..555709c 100644 --- a/mean_shift_cuda/meanshift_gpu_utils.cu +++ b/mean_shift_cuda/meanshift_gpu_utils.cu @@ -365,7 +365,7 @@ void calculate_norm(Matrix d_mean_shift_vector, double *current_norm){ dimGrid.x = (d_mean_shift_vector.height + dimBlock.x - 1) / dimBlock.x; dimGrid.y = 1; - norm<<>>(d_mean_shift_vector, ¤t_norm); + norm<<>>(d_mean_shift_vector, current_norm); if (cudaGetLastError() != cudaSuccess){ --requested_block_size; } else {