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

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.
This commit is contained in:
ckolivas 2012-02-16 17:31:22 +11:00
parent a95e4f4d03
commit 6693898710
3 changed files with 4 additions and 4 deletions

View File

@ -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])

View File

@ -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);

View File

@ -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
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]));