mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-24 05:24:23 +00:00
Neoscrypt fixes
Pushed the wrong kernel previously and I changed the TC to not override the intensity. As with scrypt, intensity will calculate TC only if TC is not set.
This commit is contained in:
parent
4ced43ba2b
commit
387bb28952
File diff suppressed because it is too large
Load Diff
16
ocl.c
16
ocl.c
@ -346,23 +346,15 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg
|
|||||||
cgpu->lookup_gap = 2;
|
cgpu->lookup_gap = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// neoscrypt calculates TC differently
|
// neoscrypt TC
|
||||||
if (!safe_cmp(cgpu->algorithm.name, "neoscrypt")) {
|
if (!safe_cmp(cgpu->algorithm.name, "neoscrypt") && !cgpu->opt_tc) {
|
||||||
size_t glob_thread_count;
|
size_t glob_thread_count;
|
||||||
long max_int;
|
long max_int;
|
||||||
unsigned char type = 0;
|
unsigned char type = 0;
|
||||||
|
|
||||||
// determine which intensity type to use
|
// determine which intensity type to use
|
||||||
// raw intensity is the same as TC so use either or setting...
|
if (cgpu->rawintensity > 0) {
|
||||||
if (cgpu->rawintensity > 0 || cgpu->opt_tc) {
|
glob_thread_count = cgpu->rawintensity;
|
||||||
|
|
||||||
if (cgpu->opt_tc) {
|
|
||||||
glob_thread_count = cgpu->rawintensity = cgpu->opt_tc;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
glob_thread_count = cgpu->rawintensity;
|
|
||||||
}
|
|
||||||
|
|
||||||
max_int = glob_thread_count;
|
max_int = glob_thread_count;
|
||||||
type = 2;
|
type = 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user