File: intelsvm.patch

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (14 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- svmbasic.h	2016-03-06 19:57:17.000000000 +0100
+++ svmbasic.h	2016-03-06 19:58:34.000000000 +0100
@@ -3,7 +3,7 @@
 // Then it is traversed in the OpenCL kernel on the device.
 typedef struct _Element
 {
-    global float* internal; //points to the "value" of another Element from the same array
-    global float* external; //points to the entry in a separate array of floating-point values
-    float value;
-} Element;
+    global float* internal __attribute__ ((aligned (8))); //points to the "value" of another Element from the same array
+    global float* external __attribute__ ((aligned (8))); //points to the entry in a separate array of floating-point values
+    float value __attribute__ ((aligned (8)));
+} Element __attribute__ ((aligned (32)));