mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-11 06:25:18 +00:00
Don't test nonce with sha and various fixes for scrypt.
This commit is contained in:
parent
b085c338f6
commit
0f43eb5eb7
@ -3971,6 +3971,9 @@ bool hashtest(const struct work *work)
|
|||||||
|
|
||||||
bool test_nonce(struct work *work, uint32_t nonce)
|
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 + 0] = (nonce >> 0) & 0xff;
|
||||||
work->data[64 + 12 + 1] = (nonce >> 8) & 0xff;
|
work->data[64 + 12 + 1] = (nonce >> 8) & 0xff;
|
||||||
work->data[64 + 12 + 2] = (nonce >> 16) & 0xff;
|
work->data[64 + 12 + 2] = (nonce >> 16) & 0xff;
|
||||||
|
2
miner.h
2
miner.h
@ -262,9 +262,7 @@ enum cl_kernels {
|
|||||||
KL_PHATK,
|
KL_PHATK,
|
||||||
KL_DIAKGCN,
|
KL_DIAKGCN,
|
||||||
KL_DIABLO,
|
KL_DIABLO,
|
||||||
#ifdef USE_SCRYPT
|
|
||||||
KL_SCRYPT,
|
KL_SCRYPT,
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum dev_reason {
|
enum dev_reason {
|
||||||
|
2
ocl.c
2
ocl.c
@ -536,7 +536,7 @@ build:
|
|||||||
char *CompilerOptions = calloc(1, 256);
|
char *CompilerOptions = calloc(1, 256);
|
||||||
|
|
||||||
if (opt_scrypt) {
|
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);
|
(int)clState->wsize);
|
||||||
} else {
|
} else {
|
||||||
sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC=%d",
|
sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC=%d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user