mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
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:
committed by
sys_ocldev
parent
e3ef10d57e
commit
4be05409a3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user