From d2bb717552c647b4778360fa1341cdae649f2562 Mon Sep 17 00:00:00 2001 From: anapt Date: Fri, 26 Jan 2018 13:04:09 +0200 Subject: [PATCH] compile error fixex --- mean_shift_cuda/meanshift_kernels.cu | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/mean_shift_cuda/meanshift_kernels.cu b/mean_shift_cuda/meanshift_kernels.cu index 832326d..d7fcdc5 100644 --- a/mean_shift_cuda/meanshift_kernels.cu +++ b/mean_shift_cuda/meanshift_kernels.cu @@ -48,7 +48,7 @@ __global__ void calculate_kernel_matrix_kernel(Matrix shifted_points, Matrix ori } } -__global__ void denominator_kernel<<>>(Matrix denominator, Matrix kernel_matrix, int total){ +__global__ void denominator_kernel(Matrix denominator, Matrix kernel_matrix){ int row = blockIdx.x * blockDim.x + threadIdx.x; int col = blockIdx.y * blockDim.y + threadIdx.y; @@ -61,15 +61,4 @@ __global__ void denominator_kernel<<>>(Matrix denominator, Ma denominator[col]=0; denominator[row] += kernel_matrix[row*denominator.width + col]; -} - -// serial - -// calculate denominator -for (int i=0; i