From edb070c833e99aae155e424f7e8422ee7293e827 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 24 Feb 2012 13:31:29 +1100 Subject: [PATCH] Fixes. --- diablo120223.cl | 4 ++-- ocl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diablo120223.cl b/diablo120223.cl index a222dddf..45eb7b19 100644 --- a/diablo120223.cl +++ b/diablo120223.cl @@ -1248,7 +1248,7 @@ __kernel __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) void search( if (!result) { output[FOUND] = FOUND; - if (!ZA[924].xU) + if (!ZA[924].x) output[NFLAG & Znonce.x] = Znonce.x; if (!ZA[924].y) output[NFLAG & Znonce.y] = Znonce.y; @@ -1263,7 +1263,7 @@ __kernel __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) void search( if (!result) { output[FOUND] = FOUND; - if (!ZA[924].xU) + if (!ZA[924].x) output[NFLAG & Znonce.x] = Znonce.x; if (!ZA[924].y) output[NFLAG & Znonce.y] = Znonce.y; diff --git a/ocl.c b/ocl.c index ae210e21..aebad65f 100644 --- a/ocl.c +++ b/ocl.c @@ -505,7 +505,7 @@ build: /* create a cl program executable for all the devices specified */ char *CompilerOptions = calloc(1, 256); - sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC%d", + sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC=%d", (int)clState->wsize, clState->vwidth, (int)clState->wsize * clState->vwidth); applog(LOG_DEBUG, "Setting worksize to %d", clState->wsize); if (clState->vwidth > 1)