Handle program's callbacks on API level

Related-To: NEO-5001
Change-Id: Ic73601f874a972c9c3fe6cc1a04edd5d7915f16e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-10-27 12:43:48 +01:00
committed by sys_ocldev
parent e3ef10d57e
commit 4be05409a3
30 changed files with 489 additions and 277 deletions

View File

@@ -32,9 +32,7 @@ cl_int Program::link(
const cl_device_id *deviceList,
const char *buildOptions,
cl_uint numInputPrograms,
const cl_program *inputPrograms,
void(CL_CALLBACK *funcNotify)(cl_program program, void *userData),
void *userData) {
const cl_program *inputPrograms) {
cl_int retVal = CL_SUCCESS;
bool isCreateLibrary;
@@ -52,12 +50,6 @@ cl_int Program::link(
break;
}
if ((funcNotify == nullptr) &&
(userData != nullptr)) {
retVal = CL_INVALID_VALUE;
break;
}
if ((deviceList != nullptr) && validateObject(*deviceList) != CL_SUCCESS) {
retVal = CL_INVALID_DEVICE;
break;
@@ -209,10 +201,6 @@ cl_int Program::link(
internalOptions.clear();
if (funcNotify != nullptr) {
(*funcNotify)(this, userData);
}
return retVal;
}
} // namespace NEO