mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
opencl: add log notice, change another to notice level, shorten comment.
This commit is contained in:
parent
0adf597640
commit
98cd96f27a
8
ocl.c
8
ocl.c
@ -558,6 +558,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
applog(LOG_NOTICE, "Building binary %s", binaryfilename);
|
||||||
|
|
||||||
clState->program = clCreateProgramWithSource(clState->context, 1, (const char **)&source, sourceSize, &status);
|
clState->program = clCreateProgramWithSource(clState->context, 1, (const char **)&source, sourceSize, &status);
|
||||||
if (status != CL_SUCCESS) {
|
if (status != CL_SUCCESS) {
|
||||||
applog(LOG_ERR, "Error %d: Loading Binary into cl_program (clCreateProgramWithSource)", status);
|
applog(LOG_ERR, "Error %d: Loading Binary into cl_program (clCreateProgramWithSource)", status);
|
||||||
@ -717,7 +719,7 @@ build:
|
|||||||
/* Save the binary to be loaded next time */
|
/* Save the binary to be loaded next time */
|
||||||
binaryfile = fopen(binaryfilename, "wb");
|
binaryfile = fopen(binaryfilename, "wb");
|
||||||
if (!binaryfile) {
|
if (!binaryfile) {
|
||||||
/* Not a fatal problem, just means we build it again next time */
|
/* Not fatal, just means we build it again next time */
|
||||||
applog(LOG_DEBUG, "Unable to create file %s", binaryfilename);
|
applog(LOG_DEBUG, "Unable to create file %s", binaryfilename);
|
||||||
} else {
|
} else {
|
||||||
if (unlikely(fwrite(binaries[slot], 1, binary_sizes[slot], binaryfile) != binary_sizes[slot])) {
|
if (unlikely(fwrite(binaries[slot], 1, binary_sizes[slot], binaryfile) != binary_sizes[slot])) {
|
||||||
@ -732,8 +734,8 @@ built:
|
|||||||
free(binaries);
|
free(binaries);
|
||||||
free(binary_sizes);
|
free(binary_sizes);
|
||||||
|
|
||||||
applog(LOG_INFO, "Initialising kernel %s with%s bitalign, %d vectors and worksize %d",
|
applog(LOG_NOTICE, "Initialising kernel %s with%s bitalign, worksize %d",
|
||||||
filename, clState->hasBitAlign ? "" : "out", clState->vwidth, (int)(clState->wsize));
|
filename, clState->hasBitAlign ? "" : "out", (int)(clState->wsize));
|
||||||
|
|
||||||
if (!prog_built) {
|
if (!prog_built) {
|
||||||
/* create a cl program executable for all the devices specified */
|
/* create a cl program executable for all the devices specified */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user