Skip to content

Commit 3b21069

Browse files
committed
bump to revision V1.1 with Killer Groestl
1 parent ac40fac commit 3b21069

35 files changed

+1301
-1387
lines changed

JHA/cuda_jha_keccak512.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,6 @@ __host__ void jackpot_keccak512_cpu_hash(int thr_id, int threads, uint32_t start
567567
// Größe des dynamischen Shared Memory Bereichs
568568
size_t shared_size = 0;
569569

570-
// fprintf(stderr, "threads=%d, %d blocks, %d threads per block, %d bytes shared\n", threads, grid.x, block.x, shared_size);
571-
572570
jackpot_keccak512_gpu_hash<<<grid, block, shared_size>>>(threads, startNounce, (uint64_t*)d_hash);
573571
MyStreamSynchronize(NULL, order, thr_id);
574572
}

JHA/jackpotcoin.cu

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
101101
{
102102
const uint32_t first_nonce = pdata[19];
103103

104-
// TODO: entfernen für eine Release! Ist nur zum Testen!
105104
if (opt_benchmark)
106105
((uint32_t*)ptarget)[7] = 0x0000ff;
107106

108107
const uint32_t Htarg = ptarget[7];
109108

110109
const int throughput = 256*4096*4; // 100;
111-
//const int throughput = 256*256*2+100; // 100;
112110

113111
static bool init[8] = {0,0,0,0,0,0,0,0};
114112
if (!init[thr_id])
@@ -167,16 +165,18 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
167165
quark_jh512_cpu_hash_64(thr_id, nrm2, pdata[19], d_branch2Nonces[thr_id], d_hash[thr_id], order++);
168166
}
169167

170-
// Runde 2 (ohne Gröstl)
168+
// Runde 3 (komplett)
171169

172170
// jackpotNonces in branch1/2 aufsplitten gemäss if (hash[0] & 0x01)
173171
jackpot_compactTest_cpu_hash_64(thr_id, nrm3, pdata[19], d_hash[thr_id], d_branch3Nonces[thr_id],
174172
d_branch1Nonces[thr_id], &nrm1,
175-
d_branch3Nonces[thr_id], &nrm3,
173+
d_branch2Nonces[thr_id], &nrm2,
176174
order++);
177175

178-
// verfolge den skein-pfad weiter
179-
quark_skein512_cpu_hash_64(thr_id, nrm3, pdata[19], d_branch3Nonces[thr_id], d_hash[thr_id], order++);
176+
if (nrm1+nrm2 == nrm3) {
177+
quark_groestl512_cpu_hash_64(thr_id, nrm1, pdata[19], d_branch1Nonces[thr_id], d_hash[thr_id], order++);
178+
quark_skein512_cpu_hash_64(thr_id, nrm2, pdata[19], d_branch2Nonces[thr_id], d_hash[thr_id], order++);
179+
}
180180

181181
// jackpotNonces in branch1/2 aufsplitten gemäss if (hash[0] & 0x01)
182182
jackpot_compactTest_cpu_hash_64(thr_id, nrm3, pdata[19], d_hash[thr_id], d_branch3Nonces[thr_id],
@@ -226,7 +226,7 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
226226
if ((vhash64[7]<=Htarg) && fulltest(vhash64, ptarget)) {
227227

228228
pdata[19] = foundNonce;
229-
*hashes_done = (foundNonce - first_nonce + 1)/4;
229+
*hashes_done = (foundNonce - first_nonce + 1)/2;
230230
//applog(LOG_INFO, "GPU #%d: result for nonce $%08X does validate on CPU (%d rounds)!", thr_id, foundNonce, rounds);
231231
return 1;
232232
} else {
@@ -238,6 +238,6 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
238238

239239
} while (pdata[19] < max_nonce && !work_restart[thr_id].restart);
240240

241-
*hashes_done = (pdata[19] - first_nonce + 1)/4;
241+
*hashes_done = (pdata[19] - first_nonce + 1)/2;
242242
return 0;
243243
}

README.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
ccMiner release 1.0 (May 10th 2014) - "Did anyone say X11?"
2+
ccMiner release 1.1 (June 14th 2014) - "Killer Groestl!"
33
-------------------------------------------------------------
44

55
***************************************************************
@@ -30,13 +30,12 @@ FugueCoin
3030
GroestlCoin & Myriad-Groestl
3131
JackpotCoin
3232
QuarkCoin family & AnimeCoin
33+
TalkCoin
34+
DarkCoin and other X11 coins
3335

3436
where some of these coins have a VERY NOTABLE nVidia advantage
3537
over competing AMD (OpenCL) implementations.
3638

37-
X11 algo is being worked on. It will be released when we
38-
have achieved a nice nVidia advantage.
39-
4039
We did not take a big effort on improving usability, so please set
4140
your parameters carefuly.
4241

@@ -140,6 +139,12 @@ features.
140139

141140
>>> RELEASE HISTORY <<<
142141

142+
June 14th 2014 released Killer Groestl quad version which I deem
143+
sufficiently hard to port over to AMD. It isn't
144+
the fastest option for Compute 3.5 and 5.0 cards,
145+
but it is still much faster than the table based
146+
versions.
147+
143148
May 10th 2014 added X11, but without the bells & whistles
144149
(no killer Groestl, SIMD hash quite slow still)
145150

0 commit comments

Comments
 (0)