Browse Source

Icarus - correct MH/s and U: with work restart set at 8 seconds

nfactor-troky
Kano 13 years ago
parent
commit
b3a50dd465
  1. 10
      driver-icarus.c

10
driver-icarus.c

@ -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…
Cancel
Save