mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Icarus - correct MH/s and U: with work restart set at 8 seconds
This commit is contained in:
parent
44fc698750
commit
b3a50dd465
@ -72,12 +72,8 @@
|
|||||||
// 2 x 11.1 / (5.26 x 10^-9)
|
// 2 x 11.1 / (5.26 x 10^-9)
|
||||||
//#define ESTIMATE_HASHES 0xFB90365E
|
//#define ESTIMATE_HASHES 0xFB90365E
|
||||||
|
|
||||||
// This is the 8s value but causes hash rate loss
|
// This is the 8s value
|
||||||
//#define ESTIMATE_HASHES 0xB54E9147
|
#define ESTIMATE_HASHES 0xB54E9147
|
||||||
|
|
||||||
// TODO: determine why returning any other value when no nonce is found
|
|
||||||
// causes hash rate loss
|
|
||||||
#define ESTIMATE_HASHES 0xffffffff
|
|
||||||
|
|
||||||
struct device_api icarus_api;
|
struct device_api icarus_api;
|
||||||
|
|
||||||
@ -353,6 +349,7 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
|
|||||||
if (opt_debug)
|
if (opt_debug)
|
||||||
gettimeofday(&tv_finish, NULL);
|
gettimeofday(&tv_finish, NULL);
|
||||||
|
|
||||||
|
work->blk.nonce = 0xffffffff;
|
||||||
memcpy((char *)&nonce, nonce_bin, sizeof(nonce_bin));
|
memcpy((char *)&nonce, nonce_bin, sizeof(nonce_bin));
|
||||||
|
|
||||||
// aborted before becoming idle, get new work
|
// aborted before becoming idle, get new work
|
||||||
@ -369,7 +366,6 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
|
|||||||
nonce = swab32(nonce);
|
nonce = swab32(nonce);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
work->blk.nonce = 0xffffffff;
|
|
||||||
submit_nonce(thr, work, nonce);
|
submit_nonce(thr, work, nonce);
|
||||||
|
|
||||||
if (opt_debug) {
|
if (opt_debug) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user