mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
fix: extend cache hash with compiler commit sha, lib size and mtime
Related-To: NEO-4262 Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d49190f4ae
commit
991febcdf4
@@ -34,12 +34,15 @@ int MockProgram::getInternalOptionsCalled = 0;
|
||||
|
||||
std::string MockProgram::getCachedFileName() const {
|
||||
CompilerCache cache(CompilerCacheConfig{});
|
||||
std::string igcRevision = "0001";
|
||||
size_t igcLibSize = 1000;
|
||||
time_t igcLibMTime = 0;
|
||||
auto hwInfo = this->context->getDevice(0)->getHardwareInfo();
|
||||
auto input = ArrayRef<const char>(this->sourceCode.c_str(), this->sourceCode.size());
|
||||
auto opts = ArrayRef<const char>(this->options.c_str(), this->options.size());
|
||||
auto internalOptions = getInternalOptions();
|
||||
auto internalOpts = ArrayRef<const char>(internalOptions.c_str(), internalOptions.size());
|
||||
return cache.getCachedFileName(hwInfo, input, opts, internalOpts);
|
||||
return cache.getCachedFileName(hwInfo, input, opts, internalOpts, igcRevision, igcLibSize, igcLibMTime);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user