1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00
This commit is contained in:
Con Kolivas 2012-02-24 13:31:29 +11:00
parent fb077c6d59
commit edb070c833
2 changed files with 3 additions and 3 deletions

View File

@ -1248,7 +1248,7 @@ __kernel __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) void search(
if (!result) { if (!result) {
output[FOUND] = FOUND; output[FOUND] = FOUND;
if (!ZA[924].xU) if (!ZA[924].x)
output[NFLAG & Znonce.x] = Znonce.x; output[NFLAG & Znonce.x] = Znonce.x;
if (!ZA[924].y) if (!ZA[924].y)
output[NFLAG & Znonce.y] = Znonce.y; output[NFLAG & Znonce.y] = Znonce.y;
@ -1263,7 +1263,7 @@ __kernel __attribute__((reqd_work_group_size(WORKSIZE, 1, 1))) void search(
if (!result) { if (!result) {
output[FOUND] = FOUND; output[FOUND] = FOUND;
if (!ZA[924].xU) if (!ZA[924].x)
output[NFLAG & Znonce.x] = Znonce.x; output[NFLAG & Znonce.x] = Znonce.x;
if (!ZA[924].y) if (!ZA[924].y)
output[NFLAG & Znonce.y] = Znonce.y; output[NFLAG & Znonce.y] = Znonce.y;

2
ocl.c
View File

@ -505,7 +505,7 @@ build:
/* create a cl program executable for all the devices specified */ /* create a cl program executable for all the devices specified */
char *CompilerOptions = calloc(1, 256); char *CompilerOptions = calloc(1, 256);
sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC%d", sprintf(CompilerOptions, "-D WORKSIZE=%d -D VECTORS%d -D WORKVEC=%d",
(int)clState->wsize, clState->vwidth, (int)clState->wsize * clState->vwidth); (int)clState->wsize, clState->vwidth, (int)clState->wsize * clState->vwidth);
applog(LOG_DEBUG, "Setting worksize to %d", clState->wsize); applog(LOG_DEBUG, "Setting worksize to %d", clState->wsize);
if (clState->vwidth > 1) if (clState->vwidth > 1)