From 17feecac8ca19c2f9f590d9452b64b67c4d2bd97 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Thu, 9 Feb 2012 15:37:00 +0100 Subject: [PATCH] queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too --- device-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-gpu.c b/device-gpu.c index f7cbcc24..9091de54 100644 --- a/device-gpu.c +++ b/device-gpu.c @@ -740,7 +740,7 @@ static cl_int queue_phatk_kernel(_clState *clState, dev_blk_ctx *blk) nonces = alloca(sizeof(uint) * vwidth); for (i = 0; i < vwidth; i++) nonces[i] = blk->nonce + i; - status |= clSetKernelArg(*kernel, num++, vwidth * sizeof(uint), (void *)nonces); + CL_SET_VARG(vwidth, nonces); CL_SET_BLKARG(W16); CL_SET_BLKARG(W17);