1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-25 09:28:20 +00:00

A CPU is not a GPU

This commit is contained in:
jsteube 2016-01-05 23:35:06 +01:00
parent 39c44f2007
commit 36df3ef329

View File

@ -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;