|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
// DiaKGCN 23-02-2012 - OpenCL kernel by Diapolo |
|
|
|
|
// DiaKGCN 24-02-2012 - OpenCL kernel by Diapolo |
|
|
|
|
// |
|
|
|
|
// Parts and / or ideas for this kernel are based upon the public-domain poclbm project, the phatk kernel by Phateus and the DiabloMiner kernel by DiabloD3. |
|
|
|
|
// The kernel was rewritten by me (Diapolo) and is still public-domain! |
|
|
|
@ -53,8 +53,12 @@ __kernel
@@ -53,8 +53,12 @@ __kernel
|
|
|
|
|
u V[8]; |
|
|
|
|
u W[16]; |
|
|
|
|
|
|
|
|
|
#if defined(VECTORS2) || defined(VECTORS4) || defined(VECTORS8) |
|
|
|
|
const u nonce = (uint)(get_local_id(0)) * (uint)(vec_step(u)) + (uint)(get_group_id(0)) * (uint)(WORKVEC) + base; |
|
|
|
|
#ifdef VECTORS8 |
|
|
|
|
const u nonce = (uint)(get_local_id(0)) * 8U + (uint)(get_group_id(0)) * (uint)(WORKVEC) + base; |
|
|
|
|
#elif defined VECTORS4 |
|
|
|
|
const u nonce = (uint)(get_local_id(0)) * 4U + (uint)(get_group_id(0)) * (uint)(WORKVEC) + base; |
|
|
|
|
#elif defined VECTORS2 |
|
|
|
|
const u nonce = (uint)(get_local_id(0)) * 2U + (uint)(get_group_id(0)) * (uint)(WORKVEC) + base; |
|
|
|
|
#else |
|
|
|
|
const u nonce = (uint)(get_local_id(0)) + (uint)(get_group_id(0)) * (uint)(WORKSIZE) + base; |
|
|
|
|
#endif |
|
|
|
|