From d80653b01437fc9ad4ce360fab5ae7cbf14c5ca7 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 3 Oct 2016 20:07:26 +0200 Subject: [PATCH] Fix some clSetKernelArg() size error that caused slow modes to not work anymore in -a 1 mode --- src/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opencl.c b/src/opencl.c index 80c882173..4b5aa5331 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -4673,7 +4673,7 @@ int opencl_session_update_combinator (opencl_ctx_t *opencl_ctx, const hashconfig if (hashconfig->attack_exec == ATTACK_EXEC_OUTSIDE_KERNEL) { - CL_err = hc_clSetKernelArg (opencl_ctx->ocl, device_param->kernel_amp, 5, sizeof (cl_mem), device_param->kernel_params_amp[5]); + CL_err = hc_clSetKernelArg (opencl_ctx->ocl, device_param->kernel_amp, 5, sizeof (cl_uint), device_param->kernel_params_amp[5]); if (CL_err != CL_SUCCESS) {