Browse Source

Fix diakgcn kernel working by passing it D1A variable and renaming it in the cl code accordingly.

Renumber version consistent with change in code since it now works.
nfactor-troky
ckolivas 13 years ago
parent
commit
6693898710
  1. 2
      configure.ac
  2. 2
      device-gpu.c
  3. 4
      diakgcn120216.cl

2
configure.ac

@ -295,7 +295,7 @@ AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install]) @@ -295,7 +295,7 @@ AC_DEFINE_UNQUOTED([CGMINER_PREFIX], ["$prefix/bin"], [Path to cgminer install])
AC_DEFINE_UNQUOTED([PHATK_KERNNAME], ["phatk120213"], [Filename for phatk kernel])
AC_DEFINE_UNQUOTED([POCLBM_KERNNAME], ["poclbm120214"], [Filename for poclbm kernel])
AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn120208"], [Filename for diakgcn kernel])
AC_DEFINE_UNQUOTED([DIAKGCN_KERNNAME], ["diakgcn120216"], [Filename for diakgcn kernel])
AC_DEFINE_UNQUOTED([DIABLO_KERNNAME], ["DiabloMiner120210"], [Filename for diablo kernel])

2
device-gpu.c

@ -763,7 +763,7 @@ static cl_int queue_diakgcn_kernel(_clState *clState, dev_blk_ctx *blk) @@ -763,7 +763,7 @@ static cl_int queue_diakgcn_kernel(_clState *clState, dev_blk_ctx *blk)
CL_SET_BLKARG(PreVal4_2);
CL_SET_BLKARG(cty_h);
CL_SET_BLKARG(cty_d);
CL_SET_BLKARG(D1A);
CL_SET_BLKARG(PreVal0);
CL_SET_BLKARG(cty_b);
CL_SET_BLKARG(cty_c);

4
diakgcn120208.cl → diakgcn120216.cl

@ -53,7 +53,7 @@ __kernel @@ -53,7 +53,7 @@ __kernel
__attribute__((reqd_work_group_size(WORKSIZE, 1, 1)))
void search( BASE
const uint PreVal4,
const uint H1, const uint D1, const uint PreVal0, const uint B1, const uint C1,
const uint H1, const uint D1A, const uint PreVal0, const uint B1, const uint C1,
const uint F1, const uint G1, const uint C1addK5, const uint B1addK6, const uint PreVal0addK7,
const uint W16addK16, const uint W17addK17,
const uint PreW18, const uint PreW19,
@ -95,7 +95,7 @@ __kernel @@ -95,7 +95,7 @@ __kernel
V[4] = PreVal4 + nonce;
V[7] = H1 + (V[3] = D1 + Ch((PreVal0 + nonce), B1, C1) + rotr26(PreVal0 + nonce));
V[7] = H1 + (V[3] = D1A + Ch((PreVal0 + nonce), B1, C1) + rotr26(PreVal0 + nonce));
V[3] += rotr30(V[4]) + Ma(F1, G1, V[4]);
V[6] = G1 + (V[2] = C1addK5 + Ch(V[7], (PreVal0 + nonce), B1) + rotr26(V[7]));
Loading…
Cancel
Save