From df05bc77844be345af0e530856563460dba3d197 Mon Sep 17 00:00:00 2001 From: samr7 Date: Sun, 14 Aug 2011 11:22:49 -0700 Subject: [PATCH] Don't try to change the worksize under -V, change the thread count. --- oclvanitygen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oclvanitygen.c b/oclvanitygen.c index 7d4f8b2..b962a3c 100644 --- a/oclvanitygen.c +++ b/oclvanitygen.c @@ -1872,8 +1872,8 @@ vg_opencl_loop(vg_context_t *vcp, cl_device_id did, int safe_mode, int verify, if (vcp->vc_verbose > 0) { printf("WARNING: Hardware verification mode enabled\n"); } - if (!worksize) - worksize = 1; + if (!nthreads) + nthreads = 1; vocp->voc_verify_func[0] = vg_ocl_verify_k0; vocp->voc_verify_func[1] = vg_ocl_verify_k1; }