|
|
@@ -465,12 +465,6 @@ build:
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
- clRetainProgram(clState->program);
|
|
|
- if (status != CL_SUCCESS) {
|
|
|
- applog(LOG_ERR, "Error: Retaining Program (clRetainProgram)");
|
|
|
- return NULL;
|
|
|
- }
|
|
|
-
|
|
|
/* create a cl program executable for all the devices specified */
|
|
|
char *CompilerOptions = calloc(1, 256);
|
|
|
|
|
|
@@ -594,12 +588,6 @@ build:
|
|
|
applog(LOG_ERR, "Error: Loading Binary into cl_program (clCreateProgramWithBinary)");
|
|
|
return NULL;
|
|
|
}
|
|
|
-
|
|
|
- clRetainProgram(clState->program);
|
|
|
- if (status != CL_SUCCESS) {
|
|
|
- applog(LOG_ERR, "Error: Retaining Program (clRetainProgram)");
|
|
|
- return NULL;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
free(source);
|