mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Constify nonce in poclbm.
This commit is contained in:
parent
60f8ccb313
commit
210fe9d5b9
@ -77,14 +77,13 @@ __kernel void search(const uint state0, const uint state1, const uint state2, co
|
||||
{
|
||||
u W[24];
|
||||
//u Vals[8]; Now put at W[16] to be in same array
|
||||
u nonce;
|
||||
|
||||
#ifdef VECTORS4
|
||||
nonce = base + (uint)(get_local_id(0)) * 4u + (uint)(get_group_id(0)) * (WORKSIZE * 4u);
|
||||
const u nonce = base + (uint)(get_local_id(0)) * 4u + (uint)(get_group_id(0)) * (WORKSIZE * 4u);
|
||||
#elif defined VECTORS2
|
||||
nonce = base + (uint)(get_local_id(0)) * 2u + (uint)(get_group_id(0)) * (WORKSIZE * 2u);
|
||||
const u nonce = base + (uint)(get_local_id(0)) * 2u + (uint)(get_group_id(0)) * (WORKSIZE * 2u);
|
||||
#else
|
||||
nonce = base + get_local_id(0) + get_group_id(0) * (WORKSIZE);
|
||||
const u nonce = base + get_local_id(0) + get_group_id(0) * (WORKSIZE);
|
||||
#endif
|
||||
|
||||
W[20] = fcty_e + nonce;
|
||||
|
Loading…
Reference in New Issue
Block a user