1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Do not run more run a kernel with more threads than workitems

This commit is contained in:
Jens Steube 2018-02-16 15:53:57 +01:00
parent 483ae613ee
commit c7ae5fb7f0

View File

@ -1814,7 +1814,7 @@ int run_kernel_tm (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
{
const u64 num_elements = 1024; // fixed
const u64 kernel_threads = device_param->kernel_wgs_tm;
const u64 kernel_threads = MIN (num_elements, device_param->kernel_wgs_tm);
cl_kernel kernel = device_param->kernel_tm;