1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 23:48:39 +00:00

Run integreted GPU at 8 threads max

This commit is contained in:
jsteube 2017-10-18 17:02:12 +02:00
parent 048b14f6c6
commit 0d192df517

View File

@ -25094,6 +25094,13 @@ u32 hashconfig_get_kernel_threads (hashcat_ctx_t *hashcat_ctx, const hc_device_p
kernel_threads = MIN (kernel_threads, 64); kernel_threads = MIN (kernel_threads, 64);
} }
// internal Intel GPU run at full speed 8
if ((strstr (device_param->device_vendor, "Intel")) && (device_param->device_type & CL_DEVICE_TYPE_GPU))
{
kernel_threads = MIN (kernel_threads, 8);
}
// a kernel can force an even lower value // a kernel can force an even lower value
kernel_threads = MIN (kernel_threads, device_param->device_maxworkgroup_size); kernel_threads = MIN (kernel_threads, device_param->device_maxworkgroup_size);