mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
feature(ocloc): read cl_cache configuration from env variables
Related-To: NEO-7785 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
730fed3206
commit
cddec0f78b
@@ -935,10 +935,11 @@ int OfflineCompiler::initialize(size_t numArgs, const std::vector<std::string> &
|
||||
}
|
||||
parseDebugSettings();
|
||||
|
||||
auto cacheConfig = NEO::getDefaultCompilerCacheConfig();
|
||||
cacheDir = cacheConfig.cacheDir;
|
||||
if (allowCaching) {
|
||||
cacheConfig.cacheDir = cacheDir;
|
||||
auto cacheConfig = NEO::getDefaultCompilerCacheConfig();
|
||||
if (cacheConfig.cacheDir.empty() && !cacheDir.empty()) {
|
||||
cacheConfig.cacheDir = cacheDir;
|
||||
}
|
||||
cache = std::make_unique<CompilerCache>(cacheConfig);
|
||||
createDir(cacheConfig.cacheDir);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user