mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
fix: remove compiler cache legacy implementation
Related-To: NEO-10679 Signed-off-by: Weronika Kapusta <weronika.kapusta@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e2a3c21e1c
commit
d6c16c1640
@@ -40,10 +40,6 @@ See the enabling [guide](cl_intel_va_api_media_sharing.md).
|
||||
|
||||
## Feature: cl_cache
|
||||
|
||||
Originally, compute-runtime had an experimental cache implementation, which was replaced
|
||||
in Q2'23 with a more robust approach. Legacy solution is now considered deprecated and the
|
||||
old experimental controls explained below will be removed by EOY 2023.
|
||||
|
||||
### What is cl_cache?
|
||||
|
||||
This is a mechanism to cache binary representations of OpenCL kernels provided in text form by
|
||||
|
||||
@@ -69,14 +69,6 @@ const StackVec<DebugVarPrefix, 4> &ApiSpecificConfig::getPrefixTypes() {
|
||||
return validClPrefixTypes;
|
||||
}
|
||||
|
||||
std::string ApiSpecificConfig::compilerCacheDir() {
|
||||
return "cl_cache_dir";
|
||||
}
|
||||
|
||||
std::string ApiSpecificConfig::compilerCacheLocation() {
|
||||
return "cl_cache";
|
||||
}
|
||||
|
||||
std::string ApiSpecificConfig::compilerCacheFileExtension() {
|
||||
return ".cl_cache";
|
||||
}
|
||||
|
||||
@@ -71,14 +71,6 @@ TEST(ApiSpecificConfigOclTests, givenEnableStatelessCompressionWhenProvidingPrin
|
||||
EXPECT_TRUE(NEO::CompressionSelector::preferCompressedAllocation(properties));
|
||||
}
|
||||
|
||||
TEST(ApiSpecificConfigOclTests, WhenGettingCompilerCacheDirThenReturnProperDirString) {
|
||||
EXPECT_EQ(0, strcmp("cl_cache_dir", ApiSpecificConfig::compilerCacheDir().c_str()));
|
||||
}
|
||||
|
||||
TEST(ApiSpecificConfigOclTests, WhenGettingCompilerCacheLocationThenReturnProperLocationString) {
|
||||
EXPECT_EQ(0, strcmp("cl_cache", ApiSpecificConfig::compilerCacheLocation().c_str()));
|
||||
}
|
||||
|
||||
TEST(ApiSpecificConfigOclTests, WhenGettingCompilerCacheFileExtensionThenReturnProperFileExtensionString) {
|
||||
EXPECT_EQ(0, strcmp(".cl_cache", ApiSpecificConfig::compilerCacheFileExtension().c_str()));
|
||||
}
|
||||
|
||||
@@ -12,5 +12,5 @@ TEST(CompilerCache, GivenDefaultCacheConfigThenValuesAreProperlyPopulated) {
|
||||
auto cacheConfig = NEO::getDefaultCompilerCacheConfig();
|
||||
EXPECT_STREQ("ocloc_cache", cacheConfig.cacheDir.c_str());
|
||||
EXPECT_STREQ(".ocloc_cache", cacheConfig.cacheFileExtension.c_str());
|
||||
EXPECT_TRUE(cacheConfig.enabled);
|
||||
EXPECT_FALSE(cacheConfig.enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user