mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 01:32:33 +00:00
Make output buffer write only as per Diapolo's suggestion.
This commit is contained in:
parent
210fe9d5b9
commit
23c01bc79c
2
ocl.c
2
ocl.c
@ -726,7 +726,7 @@ built:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, BUFFERSIZE, NULL, &status);
|
clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_WRITE_ONLY, BUFFERSIZE, NULL, &status);
|
||||||
if (status != CL_SUCCESS) {
|
if (status != CL_SUCCESS) {
|
||||||
applog(LOG_ERR, "Error: clCreateBuffer (outputBuffer)");
|
applog(LOG_ERR, "Error: clCreateBuffer (outputBuffer)");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user