From a8bf7cff08eae034f1cc50b3a57cf157592097aa Mon Sep 17 00:00:00 2001 From: samr7 Date: Sun, 17 Jul 2011 17:20:29 -0700 Subject: [PATCH] Use two output buffers so that the GPU doesn't trample on the hash list while the CPU is checking for matches. --- oclvanitygen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oclvanitygen.c b/oclvanitygen.c index 80fd355..0e53ce0 100644 --- a/oclvanitygen.c +++ b/oclvanitygen.c @@ -489,7 +489,7 @@ vg_opencl_loop(vg_context_t *vcp, cl_device_id did, int worksize) int i; int batchsize, round; - const BN_ULONG rekey_max = 20000000; + const BN_ULONG rekey_max = 100000000; BN_ULONG npoints, rekey_at; EC_KEY *pkey = NULL; @@ -523,7 +523,7 @@ vg_opencl_loop(vg_context_t *vcp, cl_device_id did, int worksize) batchsize = 256; if (!worksize) worksize = 512; - nslots = 1; + nslots = 2; slot = 0; ppbase = (EC_POINT **) malloc((batchsize + worksize) *