Commit 5fd7d462abced7e4038d3b9399a7aa1b50fd95ea

Con Kolivas 2012-03-05T16:22:18

Add vector type hint to diablo kernel.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/diablo120222.cl b/diablo120222.cl
index 49c4b96..c8a6c48 100644
--- a/diablo120222.cl
+++ b/diablo120222.cl
@@ -44,7 +44,10 @@
 #define ZR26(n) ((Zrotr((n), 26) ^ Zrotr((n), 21) ^ Zrotr((n), 7)))
 #define ZR30(n) ((Zrotr((n), 30) ^ Zrotr((n), 19) ^ Zrotr((n), 10)))
 
-__kernel __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) void search(
+__kernel
+__attribute__((vec_type_hint(z)))
+__attribute__((reqd_work_group_size(WORKSIZE, 1, 1)))
+void search(
     const z base,
     const uint PreVal4_state0, const uint PreVal4_state0_k7,
     const uint PreVal4_T1,