Browse Source

Use PreVal4addT1 instead of PreVal4 in poclbm kernel.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
49c28b3929
  1. 2
      device-gpu.c
  2. 5
      poclbm120213.cl

2
device-gpu.c

@ -692,7 +692,7 @@ static cl_int queue_poclbm_kernel(_clState *clState, dev_blk_ctx *blk)
CL_SET_BLKARG(B1addK6); CL_SET_BLKARG(B1addK6);
CL_SET_BLKARG(W16addK16); CL_SET_BLKARG(W16addK16);
CL_SET_BLKARG(W17addK17); CL_SET_BLKARG(W17addK17);
CL_SET_BLKARG(PreVal4); CL_SET_BLKARG(PreVal4addT1);
CL_SET_BLKARG(PreVal0); CL_SET_BLKARG(PreVal0);
CL_SET_ARG(clState->outputBuffer); CL_SET_ARG(clState->outputBuffer);

5
poclbm120213.cl

@ -76,7 +76,7 @@ __kernel void search(const uint state0, const uint state1, const uint state2, co
const uint fcty_e2, const uint fcty_e2,
const uint D1A, const uint C1addK5, const uint B1addK6, const uint D1A, const uint C1addK5, const uint B1addK6,
const uint W16addK16, const uint W17addK17, const uint W16addK16, const uint W17addK17,
const uint PreVal4, const uint Preval0, const uint PreVal4addT1, const uint Preval0,
__global uint * output) __global uint * output)
{ {
u W[24]; u W[24];
@ -90,7 +90,6 @@ __kernel void search(const uint state0, const uint state1, const uint state2, co
const u 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 #endif
Vals[4]=PreVal4+nonce;
Vals[0]=Preval0+nonce; Vals[0]=Preval0+nonce;
@ -100,7 +99,7 @@ Vals[3]+=D1A;
Vals[7]=Vals[3]; Vals[7]=Vals[3];
Vals[7]+=h1; Vals[7]+=h1;
Vals[4]+=fcty_e2; Vals[4]=PreVal4addT1+nonce;
Vals[3]+=(rotr(Vals[4],2)^rotr(Vals[4],13)^rotr(Vals[4],22)); Vals[3]+=(rotr(Vals[4],2)^rotr(Vals[4],13)^rotr(Vals[4],22));
Vals[2]=C1addK5; Vals[2]=C1addK5;

Loading…
Cancel
Save