fix: remove compiler cache legacy implementation

Related-To: NEO-10679

Signed-off-by: Weronika Kapusta <weronika.kapusta@intel.com>
This commit is contained in:
Weronika Kapusta
2024-05-06 16:20:13 +00:00
committed by Compute-Runtime-Automation
parent e2a3c21e1c
commit d6c16c1640
20 changed files with 26 additions and 154 deletions

View File

@@ -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

View File

@@ -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";
}

View File

@@ -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()));
}

View File

@@ -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);
}