Unify meaning of RebuildPrecompiledKernels across OCL and L0 APIs

Resolves: NEO-7364
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-10-26 17:45:19 +00:00
committed by Compute-Runtime-Automation
parent daa26701e4
commit 2df001327a
3 changed files with 14 additions and 7 deletions

View File

@@ -193,7 +193,7 @@ cl_int Program::createProgramFromBinary(
this->buildInfos[rootDeviceIndex].debugDataSize = singleDeviceBinary.debugData.size();
bool rebuild = isRebuiltToPatchtokensRequired(&clDevice.getDevice(), archive, this->options, this->isBuiltIn);
rebuild |= isBuiltIn && DebugManager.flags.RebuildPrecompiledKernels.get();
rebuild |= DebugManager.flags.RebuildPrecompiledKernels.get();
if (rebuild && 0u == this->irBinarySize) {
return CL_INVALID_BINARY;
}