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 {