Fixed a type incompatibility issue that prevented the correct parameter passing to the OpenCL kernels (long is different on x86 and arm-v7)
@@ -49,7 +49,7 @@ typedef struct nei_str
// neighbor box
int x, y, z;
int number;
- long offset;
+ long long offset;
} nei_str;
@@ -59,7 +59,7 @@ typedef struct box_str
// home box
// neighbor boxes
int nn;
@@ -84,11 +84,11 @@ typedef struct dim_str
int boxes1d_arg;
// system memory
- long number_boxes;
- long box_mem;
- long space_elem;
- long space_mem;
- long space_mem2;
+ long long number_boxes;
+ long long box_mem;
+ long long space_elem;
+ long long space_mem;
+ long long space_mem2;
} dim_str;
@@ -0,0 +1 @@
+./lavaMD -boxes1d 16