1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Add worksize and vector attribute hints to the poclbm kernel.

This commit is contained in:
Con Kolivas 2012-03-05 16:19:15 +11:00
parent 325246d309
commit db873ba202

View File

@ -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,