mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Fix OCL specific registry path in a core dir
Change-Id: I5b7792582e6c77a29ffb42b8fe024bc826ae1867 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
712313a3be
commit
86edfea3bf
@ -11,6 +11,7 @@
|
||||
#include <runtime/helpers/file_io.h>
|
||||
#include <runtime/helpers/hash.h>
|
||||
#include <runtime/helpers/hw_info.h>
|
||||
#include <runtime/os_interface/ocl_reg_path.h>
|
||||
#include <runtime/os_interface/os_inc_base.h>
|
||||
#include <runtime/program/program.h>
|
||||
|
||||
@ -53,8 +54,9 @@ const std::string BinaryCache::getCachedFileName(const HardwareInfo &hwInfo, con
|
||||
}
|
||||
|
||||
BinaryCache::BinaryCache() {
|
||||
std::string keyName = "cl_cache_dir";
|
||||
std::unique_ptr<SettingsReader> settingsReader(SettingsReader::createOsReader(keyName));
|
||||
std::string keyName = oclRegPath;
|
||||
keyName += "cl_cache_dir";
|
||||
std::unique_ptr<SettingsReader> settingsReader(SettingsReader::createOsReader(false, keyName));
|
||||
clCacheLocation = settingsReader->getSetting(settingsReader->appSpecificLocation(keyName), static_cast<std::string>(CL_CACHE_LOCATION));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user