mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-18 10:32:04 +00:00
CPU threads still work better on a single local work item
This commit is contained in:
parent
5951207365
commit
75c4d09301
@ -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
|
// 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;
|
return kernel_threads;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user