mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
build: allow use cl_cache in ocloc
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cddec0f78b
commit
ad374fbd8f
@@ -607,14 +607,12 @@ int OfflineCompiler::buildSourceCode() {
|
||||
}
|
||||
|
||||
genBinary = cache->loadCachedBinary(genHash, genBinarySize).release();
|
||||
|
||||
if (genBinary) {
|
||||
bool isZebin = isDeviceBinaryFormat<DeviceBinaryFormat::zebin>(ArrayRef<uint8_t>(reinterpret_cast<uint8_t *>(genBinary), genBinarySize));
|
||||
if (!generateDebugInfo || isZebin) {
|
||||
return retVal;
|
||||
}
|
||||
debugDataBinary = cache->loadCachedBinary(dbgHash, debugDataBinarySize).release();
|
||||
|
||||
if (debugDataBinary) {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user