Browse Source

zr5: disable reset on validation errors

cudaResetDevice() do a segfault, to check later...
2upstream
Tanguy Pruvot 9 years ago
parent
commit
d2ced77ae8
  1. 3
      skein.cu
  2. 4
      zr5.cu

3
skein.cu

@ -414,9 +414,6 @@ extern "C" int scanhash_skeincoin(int thr_id, uint32_t *pdata, const uint32_t *p @@ -414,9 +414,6 @@ extern "C" int scanhash_skeincoin(int thr_id, uint32_t *pdata, const uint32_t *p
}
else {
applog(LOG_INFO, "GPU #%d: result for nonce $%08X does not validate on CPU!", device_map[thr_id], foundNonce);
// reinit the card
init[thr_id] = false;
}
}
pdata[19] += throughput;

4
zr5.cu

@ -406,8 +406,8 @@ extern "C" int scanhash_zr5(int thr_id, uint32_t *pdata, const uint32_t *ptarget @@ -406,8 +406,8 @@ extern "C" int scanhash_zr5(int thr_id, uint32_t *pdata, const uint32_t *ptarget
} else {
applog(LOG_WARNING, "GPU #%d: result for %08x does not validate on CPU!", device_map[thr_id], foundNonce);
// reinit the card..
cuda_reset_device(thr_id, init);
// reinit the card.. segfault so no
// cuda_reset_device(thr_id, init);
pdata[19]++;
pdata[0] = oldp0;

Loading…
Cancel
Save