Don't test nonce with sha and various fixes for scrypt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
diff --git a/cgminer.c b/cgminer.c
index c0084ab..83439f7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3971,6 +3971,9 @@ bool hashtest(const struct work *work)
bool test_nonce(struct work *work, uint32_t nonce)
{
+ if (opt_scrypt)
+ return true;
+
work->data[64 + 12 + 0] = (nonce >> 0) & 0xff;
work->data[64 + 12 + 1] = (nonce >> 8) & 0xff;
work->data[64 + 12 + 2] = (nonce >> 16) & 0xff;
diff --git a/miner.h b/miner.h
index 1261ea5..da62dcb 100644
--- a/miner.h
+++ b/miner.h
@@ -262,9 +262,7 @@ enum cl_kernels {
KL_PHATK,
KL_DIAKGCN,
KL_DIABLO,
-#ifdef USE_SCRYPT
KL_SCRYPT,
-#endif
};
enum dev_reason {
diff --git a/ocl.c b/ocl.c
index c6944e6..3faba2b 100644
--- a/ocl.c
+++ b/ocl.c
@@ -536,7 +536,7 @@ build:
char *CompilerOptions = calloc(1, 256);
if (opt_scrypt) {
- sprintf(CompilerOptions, "-D LOOKUP_GAP=2 -D CONCURRENT_THREADS=512 -D WORKSIZE=%d",
+ sprintf(CompilerOptions, "-D LOOKUP_GAP=2 -D CONCURRENT_THREADS=6144 -D WORKSIZE=%d",
(int)clState->wsize);
} else {
sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC=%d",