Эх сурвалжийг харах

Added run script, fix for gpu for lavaMD benchmark

Fixed a type incompatibility issue that prevented the correct parameter
passing to the OpenCL kernels (long is different on x86 and arm-v7)
Andrea Gussoni 8 жил өмнө
parent
commit
6c20bc34b7

+ 7 - 7
opencl/lavaMD/main.h

@@ -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
 	int x, y, z;
 	int number;
-	long offset;
+	long long offset;
 
 	// 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;
 

+ 1 - 0
opencl/lavaMD/run-gpu

@@ -0,0 +1 @@
+./lavaMD -boxes1d 16