mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-22 20:44:49 +00:00
tmp blake log
This commit is contained in:
parent
43d3e93e1a
commit
049e577301
15
blake32.cu
15
blake32.cu
@ -285,6 +285,14 @@ extern "C" int scanhash_blake32(int thr_id, uint32_t *pdata, const uint32_t *pta
|
|||||||
init[thr_id] = true;
|
init[thr_id] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (throughput < (TPB * 2048))
|
||||||
|
applog(LOG_WARNING, "throughput=%u, start=%x, max=%x", throughput, first_nonce, max_nonce);
|
||||||
|
|
||||||
|
if (max_nonce < first_nonce) {
|
||||||
|
applog(LOG_ERR, "start=%x > end=%x !", first_nonce, max_nonce);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
blake256_cpu_setBlock_80(pdata, (void*)ptarget);
|
blake256_cpu_setBlock_80(pdata, (void*)ptarget);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -312,10 +320,13 @@ extern "C" int scanhash_blake32(int thr_id, uint32_t *pdata, const uint32_t *pta
|
|||||||
goto exit_scan;
|
goto exit_scan;
|
||||||
}
|
}
|
||||||
else if (vhashcpu[7] > Htarg) {
|
else if (vhashcpu[7] > Htarg) {
|
||||||
applog(LOG_WARNING, "GPU #%d: result for %08x is not in range: %x > %x", thr_id, foundNonce, vhashcpu[7], Htarg);
|
applog(LOG_WARNING, "GPU #%d: result for nounce %08x is not in range: %x > %x", thr_id, foundNonce, vhashcpu[7], Htarg);
|
||||||
|
}
|
||||||
|
else if (vhashcpu[6] > ptarget[6]) {
|
||||||
|
applog(LOG_WARNING, "GPU #%d: hash[6] for nounce %08x is not in range: %x > %x", thr_id, foundNonce, vhashcpu[6], ptarget[6]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
applog(LOG_WARNING, "GPU #%d: result for %08x does not validate on CPU!", thr_id, foundNonce);
|
applog(LOG_WARNING, "GPU #%d: result for nounce %08x does not validate on CPU!", thr_id, foundNonce);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -842,7 +842,7 @@ static void *miner_thread(void *userdata)
|
|||||||
int thr_id = mythr->id;
|
int thr_id = mythr->id;
|
||||||
struct work work;
|
struct work work;
|
||||||
uint32_t max_nonce;
|
uint32_t max_nonce;
|
||||||
uint32_t end_nonce = 0xffffffffU / opt_n_threads * (thr_id + 1) - 0x20;
|
uint32_t end_nonce = 0xffffffffU / opt_n_threads * (thr_id + 1) - 2;
|
||||||
unsigned char *scratchbuf = NULL;
|
unsigned char *scratchbuf = NULL;
|
||||||
char s[16];
|
char s[16];
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user