mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-25 07:58:19 +00:00
Fix CPU thread count auto-tuning
This commit is contained in:
parent
b2347f0962
commit
f5317a6b27
@ -4346,7 +4346,7 @@ static u32 get_kernel_threads (hashcat_ctx_t *hashcat_ctx, const hc_device_param
|
|||||||
|
|
||||||
if (device_param->device_type & CL_DEVICE_TYPE_CPU)
|
if (device_param->device_type & CL_DEVICE_TYPE_CPU)
|
||||||
{
|
{
|
||||||
if ((kernel_threads_min >= 1) && (kernel_threads_max <= 1))
|
if ((1 >= kernel_threads_min) && (1 <= kernel_threads_max))
|
||||||
{
|
{
|
||||||
kernel_threads_min = 1;
|
kernel_threads_min = 1;
|
||||||
kernel_threads_max = 1;
|
kernel_threads_max = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user