From c7ae5fb7f0dba25267fa9dab796fa926e1d7e099 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 16 Feb 2018 15:53:57 +0100 Subject: [PATCH] Do not run more run a kernel with more threads than workitems --- src/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opencl.c b/src/opencl.c index a3ff1638f..440c50957 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -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;