mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0ad5316f53
commit
9568ee47e7
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user