Reorganization directory structure [1/n]

Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
This commit is contained in:
kamdiedrich
2020-02-22 21:54:11 +01:00
parent 247cc953d1
commit fa8e720f9e
660 changed files with 3 additions and 3 deletions

View 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