1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-27 00:48:13 +00:00

CPU threads still work better on a single local work item

This commit is contained in:
Jens Steube 2018-02-09 23:40:52 +01:00
parent 5951207365
commit 75c4d09301

View File

@ -25982,7 +25982,12 @@ u32 hashconfig_get_kernel_threads (hashcat_ctx_t *hashcat_ctx, const hc_device_p
// otherwise it depends on the opencl device type
const u32 kernel_threads = (const u32) device_param->device_maxworkgroup_size;
u32 kernel_threads = (const u32) device_param->device_maxworkgroup_size;
if (device_param->device_type & CL_DEVICE_TYPE_CPU)
{
kernel_threads = MIN (kernel_threads, KERNEL_THREADS_MAX_CPU);
}
return kernel_threads;
}