Commit db873ba202b8ac633fcbb92edb032915417ea120

Con Kolivas 2012-03-05T16:19:15

Add worksize and vector attribute hints to the poclbm kernel.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/poclbm120222.cl b/poclbm120222.cl
index b32dcc9..8fb0090 100644
--- a/poclbm120222.cl
+++ b/poclbm120222.cl
@@ -67,7 +67,10 @@ __constant uint K[64] = {
 // problems. (this is used 4 times, and likely optimized out by the compiler.)
 #define Ma2(x, y, z) ((y & z) | (x & (y | z)))
 
-__kernel void search(const uint state0, const uint state1, const uint state2, const uint state3,
+__kernel
+	__attribute__((vec_type_hint(u)))
+	__attribute__((reqd_work_group_size(WORKSIZE, 1, 1)))
+	void search(const uint state0, const uint state1, const uint state2, const uint state3,
 						const uint state4, const uint state5, const uint state6, const uint state7,
 						const uint b1, const uint c1,
 						const uint f1, const uint g1, const uint h1,