cn/r part 2 of 2.
This commit is contained in:
parent
b9e15389ca
commit
57f82f7504
16 changed files with 287 additions and 139 deletions
|
@ -63,7 +63,7 @@ static cl_program createFromSource(const IOclRunner *runner)
|
|||
if (OclLib::buildProgram(program, 1, &device, runner->buildOptions()) != CL_SUCCESS) {
|
||||
printf("BUILD LOG:\n%s\n", OclLib::getProgramBuildLog(program, device).data());
|
||||
|
||||
OclLib::releaseProgram(program);
|
||||
OclLib::release(program);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ static cl_program createFromBinary(const IOclRunner *runner, const std::string &
|
|||
}
|
||||
|
||||
if (OclLib::buildProgram(program, 1, &device) != CL_SUCCESS) {
|
||||
OclLib::releaseProgram(program);
|
||||
OclLib::release(program);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue