mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Revert "Forbid to rebuild program"
This reverts commit aa957370da.
Change-Id: Ie935cfe1b3b70023e520042bce5f341ae6b39271
This commit is contained in:
committed by
sys_ocldev
parent
324b1f5c60
commit
23601a8c59
@@ -1467,11 +1467,7 @@ cl_int CL_API_CALL clBuildProgram(cl_program program,
|
||||
auto pProgram = castToObject<Program>(program);
|
||||
|
||||
if (pProgram) {
|
||||
if (pProgram->getBuildStatus() == CL_BUILD_SUCCESS) {
|
||||
retVal = CL_INVALID_OPERATION;
|
||||
} else {
|
||||
retVal = pProgram->build(numDevices, deviceList, options, funcNotify, userData, clCacheEnabled);
|
||||
}
|
||||
retVal = pProgram->build(numDevices, deviceList, options, funcNotify, userData, clCacheEnabled);
|
||||
}
|
||||
|
||||
TRACING_EXIT(clBuildProgram, &retVal);
|
||||
|
||||
Reference in New Issue
Block a user