diff --git a/meanshift.c b/meanshift.c index 51e4b4f..6c168b3 100644 --- a/meanshift.c +++ b/meanshift.c @@ -1,8 +1,11 @@ #include #include #include +#include +#include #include "serial_declarations.h" +#define N 512 int NUMBER_OF_POINTS = 600; int DIMENSIONS = 2; @@ -15,6 +18,19 @@ double seq_time; int meanshift(double **original_points, double ***shifted_points, int h , parameters *opt, int iteration); +__device__ double norm(double **matrix, int rows, int cols){ + + double sum=0, temp_mul=0; + for (int i=0; i