Browse Source

Correct target value passed to scrypt kernel.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
e45ebb62a9
  1. 2
      driver-opencl.c

2
driver-opencl.c

@ -1001,7 +1001,7 @@ static cl_int queue_scrypt_kernel(_clState *clState, dev_blk_ctx *blk, __maybe_u @@ -1001,7 +1001,7 @@ static cl_int queue_scrypt_kernel(_clState *clState, dev_blk_ctx *blk, __maybe_u
cl_uint le_target;
cl_int status = 0;
le_target = ~swab32((uint32_t)blk->work->target[7]);
le_target = ~swab32(*(cl_uint *)(blk->work->target + 28));
clState->cldata = blk->work->data;
status = clEnqueueWriteBuffer(clState->commandQueue, clState->CLbuffer0, true, 0, 80, clState->cldata, 0, NULL,NULL);

Loading…
Cancel
Save