projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbe2d96
)
improved autotune engine
author
jsteube
<jens.steube@gmail.com>
Tue, 3 May 2016 10:37:43 +0000
(12:37 +0200)
committer
jsteube
<jens.steube@gmail.com>
Tue, 3 May 2016 10:37:43 +0000
(12:37 +0200)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
f289bb1
..
035a97d
100644
(file)
--- a/
src/oclHashcat.c
+++ b/
src/oclHashcat.c
@@
-3018,6
+3018,20
@@
static void autotune (hc_device_param_t *device_param)
}
}
}
}
+ // because of the balance we may have some free space left!
+ // at this point, allow a small variance to overdrive the limit
+
+ const int exec_left = (target_ms * 1.2) / exec_best;
+
+ const int accel_left = kernel_accel_max / kernel_accel_best;
+
+ const int exec_accel_min = MIN (exec_left, accel_left);
+
+ if (exec_accel_min)
+ {
+ kernel_accel_best *= exec_accel_min;
+ }
+
// reset timer
device_param->exec_pos = 0;
// reset timer
device_param->exec_pos = 0;