Skip to content

Commit

Permalink
Patch ocl.c
Browse files Browse the repository at this point in the history
Changed readbufsize to 128UL in ocl.c for the 127 bug in Monero. Refer
to
genesismining/sgminer-gm@608c988
for more information.
  • Loading branch information
OhGodAGirl committed Feb 9, 2017
1 parent 608c988 commit d3e87f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion algorithm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ static cl_int queue_cryptonight_kernel(_clState *clState, dev_blk_ctx *blk, __ma

//le_target = *(cl_ulong *)(blk->work->device_target + 24);
memcpy(clState->cldata, blk->work->data, blk->work->XMRBlobLen);

status = clEnqueueWriteBuffer(clState->commandQueue, clState->CLbuffer0, true, 0, blk->work->XMRBlobLen, clState->cldata , 0, NULL, NULL);

CL_SET_ARG(clState->CLbuffer0);
Expand Down
2 changes: 1 addition & 1 deletion ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg

if (algorithm->type == ALGO_CRYPTONIGHT) {
size_t GlobalThreads;
readbufsize = 76UL;
readbufsize = 128UL;

set_threads_hashes(1, clState->compute_shaders, &GlobalThreads, 1, &cgpu->intensity, &cgpu->xintensity, &cgpu->rawintensity, &cgpu->algorithm);

Expand Down

0 comments on commit d3e87f3

Please sign in to comment.