From db873ba202b8ac633fcbb92edb032915417ea120 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 5 Mar 2012 16:19:15 +1100 Subject: [PATCH] Add worksize and vector attribute hints to the poclbm kernel. --- poclbm120222.cl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poclbm120222.cl b/poclbm120222.cl index b32dcc9d..8fb00901 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,