Browse Source

queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too

Philip Kaufmann 14 years ago
parent
commit
17feecac8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      device-gpu.c

+ 1 - 1
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);