Revert "fix: remove compiler cache legacy implementation"

This reverts commit 864f42116c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2024-04-09 01:25:38 +02:00
committed by Compute-Runtime-Automation
parent 0ad5316f53
commit 9568ee47e7
18 changed files with 146 additions and 22 deletions

View File

@@ -78,6 +78,14 @@ bool ApiSpecificConfig::isSharedAllocPrefetchEnabled() {
(NEO::debugManager.flags.EnableBOChunkingPrefetch.get() && ((NEO::debugManager.flags.EnableBOChunking.get()) != -1) && ((NEO::debugManager.flags.EnableBOChunking.get()) & 0x1)));
}
std::string ApiSpecificConfig::compilerCacheDir() {
return "l0_cache_dir";
}
std::string ApiSpecificConfig::compilerCacheLocation() {
return "l0_cache";
}
std::string ApiSpecificConfig::compilerCacheFileExtension() {
return ".l0_cache";
}

View File

@@ -79,6 +79,14 @@ TEST(ImplicitScalingApiTests, givenLevelZeroApiUsedThenSupportEnabled) {
EXPECT_TRUE(ImplicitScaling::apiSupport);
}
TEST(ApiSpecificConfigL0Tests, WhenGettingCompilerCacheDirThenReturnProperDirString) {
EXPECT_EQ(0, strcmp("l0_cache_dir", ApiSpecificConfig::compilerCacheDir().c_str()));
}
TEST(ApiSpecificConfigL0Tests, WhenGettingCompilerCacheLocationThenReturnProperLocationString) {
EXPECT_EQ(0, strcmp("l0_cache", ApiSpecificConfig::compilerCacheLocation().c_str()));
}
TEST(ApiSpecificConfigL0Tests, WhenGettingCompilerCacheFileExtensionThenReturnProperFileExtensionString) {
EXPECT_EQ(0, strcmp(".l0_cache", ApiSpecificConfig::compilerCacheFileExtension().c_str()));
}