Skip to content

Commit

Permalink
Merge pull request #278 from fancyIX/bug/#277
Browse files Browse the repository at this point in the history
Bug #277
  • Loading branch information
fancyIX authored May 3, 2022
2 parents 7a13091 + 4a68d46 commit 352dec4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,10 +1135,12 @@ if (algorithm->type == ALGO_YESCRYPTR16_NAVI || algorithm->type == ALGO_YESCRYPT
applog(LOG_DEBUG, "Error %d: clCreateBuffer (buffer4), decrease TC or increase LG", status);
return NULL;
}
clState->buffer5 = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, buf5size, NULL, &status);
if (status != CL_SUCCESS && !clState->buffer5) {
applog(LOG_DEBUG, "Error %d: clCreateBuffer (buffer5), decrease TC or increase LG", status);
return NULL;
if (algorithm->type == ALGO_YESCRYPTR16_NAVI || algorithm->type == ALGO_YESCRYPTR16) {
clState->buffer5 = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, buf5size, NULL, &status);
if (status != CL_SUCCESS && !clState->buffer5) {
applog(LOG_DEBUG, "Error %d: clCreateBuffer (buffer5), decrease TC or increase LG", status);
return NULL;
}
}
}
else if (algorithm->type == ALGO_LYRA2REV2 || algorithm->type == ALGO_LYRA2REV3) {
Expand Down

0 comments on commit 352dec4

Please sign in to comment.