Post
Topic
Board Mining (Altcoins)
Re: [ANN] sgminer v5 - new unified multi-algorithm on-the-fly kernel switching miner
by
Zuikkis
on 12/11/2014, 05:31:56 UTC
for anyone that is still having issues with HW errors on various algo's try my latest binary
i think i may have found the problem but would like others to test and see if it is fixed
also, arebyp kernel can now be used for nscrypt although it seems to put out less hashrate than zuikkis, though it produces less errors for me

Hi,

I also fixed it in my local build, is this the same you found? Smiley This fixed HW errors 100% for me.

sgminer.c, function test_nonce, near line 6873:


Code:
  // for Neoscrypt, the diff1targe value is in work->target
  if ((work->pool->algorithm.name, "neoscrypt")) {
    diff1targ = ((uint32_t *)work->target)[7];
  } else {
    diff1targ = work->pool->algorithm.diff1targ;
  }

Should be like this, just add !safe_cmp:

Code:
  // for Neoscrypt, the diff1targe value is in work->target
  if (!safe_cmp(work->pool->algorithm.name, "neoscrypt")) {
    diff1targ = ((uint32_t *)work->target)[7];
  } else {
    diff1targ = work->pool->algorithm.diff1targ;
  }

The original version is really a no-op, always true. So neoscrypt code was used for all algorithms.