projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c44f2
)
A CPU is not a GPU
author
jsteube
<jens.steube@gmail.com>
Tue, 5 Jan 2016 22:35:06 +0000
(23:35 +0100)
committer
jsteube
<jens.steube@gmail.com>
Tue, 5 Jan 2016 22:35:06 +0000
(23:35 +0100)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
695f671
..
63a8d6f
100644
(file)
--- a/
src/oclHashcat.c
+++ b/
src/oclHashcat.c
@@
-13000,6
+13000,13
@@
int main (int argc, char **argv)
if (hash_mode == 3200) kernel_threads = 8;
if (hash_mode == 9000) kernel_threads = 8;
+ if (device_type == CL_DEVICE_TYPE_CPU)
+ {
+ // CPU still need lots of workitems, don't know why...
+
+ kernel_accel = (kernel_accel >= 8) ? kernel_accel / 8 : 1;
+ }
+
uint kernel_power = device_processors * kernel_threads * kernel_accel;
uint kernel_blocks = kernel_power;