|
@@ -19,7 +19,7 @@
|
|
|
#include "CLHelper.h"
|
|
|
typedef struct {
|
|
|
float weight;
|
|
|
- long assign; /* number of point where this one is assigned */
|
|
|
+ long long assign; /* number of point where this one is assigned */
|
|
|
float cost; /* cost of that assignment, weight*distance */
|
|
|
} Point_Struct;
|
|
|
|
|
@@ -79,7 +79,7 @@ void allocDevMem(int num, int dim, int kmax){
|
|
|
quit(&(msg[0]));
|
|
|
}
|
|
|
}
|
|
|
-float pgain( long x, Points *points, float z, long int *numcenters, int kmax, bool *is_center, int *center_table, char *switch_membership,
|
|
|
+float pgain(long long x, Points *points, float z, long int *numcenters, int kmax, bool *is_center, int *center_table, char *switch_membership,
|
|
|
double *serial, double *cpu_gpu_memcpy, double *memcpy_back, double *gpu_malloc, double *kernel){
|
|
|
float gl_cost = 0;
|
|
|
try{
|