mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
Reorganization directory structure [1/n]
Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
This commit is contained in:
32
opencl/source/compiler_interface/default_cl_cache_config.cpp
Normal file
32
opencl/source/compiler_interface/default_cl_cache_config.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "default_cl_cache_config.h"
|
||||
|
||||
#include "core/utilities/debug_settings_reader.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "os_inc.h"
|
||||
#include "os_interface/ocl_reg_path.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
CompilerCacheConfig getDefaultClCompilerCacheConfig() {
|
||||
CompilerCacheConfig ret;
|
||||
|
||||
std::string keyName = oclRegPath;
|
||||
keyName += "cl_cache_dir";
|
||||
std::unique_ptr<SettingsReader> settingsReader(SettingsReader::createOsReader(false, keyName));
|
||||
ret.cacheDir = settingsReader->getSetting(settingsReader->appSpecificLocation(keyName), static_cast<std::string>(CL_CACHE_LOCATION));
|
||||
|
||||
ret.cacheFileExtension = ".cl_cache";
|
||||
|
||||
return ret;
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user