Browse Source

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.
djm34
ystarnaud 10 years ago
parent
commit
387bb28952
  1. 974
      kernel/neoscrypt.cl
  2. 14
      ocl.c

974
kernel/neoscrypt.cl

File diff suppressed because it is too large Load Diff

14
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) {
if (cgpu->opt_tc) {
glob_thread_count = cgpu->rawintensity = cgpu->opt_tc;
}
else {
glob_thread_count = cgpu->rawintensity; glob_thread_count = cgpu->rawintensity;
}
max_int = glob_thread_count; max_int = glob_thread_count;
type = 2; type = 2;
} }

Loading…
Cancel
Save