From 75c4d093014a7ebe6e3613d4eecb779f5d42f65f Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 9 Feb 2018 23:40:52 +0100 Subject: [PATCH] CPU threads still work better on a single local work item --- src/interface.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index 9d422c020..8fba39748 100644 --- a/src/interface.c +++ b/src/interface.c @@ -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; }