mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +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;
|
||||
}
|
||||
|
||||
// neoscrypt calculates TC differently
|
||||
if (!safe_cmp(cgpu->algorithm.name, "neoscrypt")) {
|
||||
// neoscrypt TC
|
||||
if (!safe_cmp(cgpu->algorithm.name, "neoscrypt") && !cgpu->opt_tc) {
|
||||
size_t glob_thread_count;
|
||||
long max_int;
|
||||
unsigned char type = 0;
|
||||
|
||||
// determine which intensity type to use
|
||||
// raw intensity is the same as TC so use either or setting...
|
||||
if (cgpu->rawintensity > 0 || cgpu->opt_tc) {
|
||||
|
||||
if (cgpu->opt_tc) {
|
||||
glob_thread_count = cgpu->rawintensity = cgpu->opt_tc;
|
||||
}
|
||||
else {
|
||||
glob_thread_count = cgpu->rawintensity;
|
||||
}
|
||||
|
||||
if (cgpu->rawintensity > 0) {
|
||||
glob_thread_count = cgpu->rawintensity;
|
||||
max_int = glob_thread_count;
|
||||
type = 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user