Add compilerHwInfoConfig

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6237
This commit is contained in:
Kamil Kopryk
2021-10-05 13:14:08 +00:00
committed by Compute-Runtime-Automation
parent 0f7378f64e
commit cfc673b77c
28 changed files with 152 additions and 77 deletions

View File

@@ -1036,20 +1036,6 @@ TEST(OfflineCompilerTest, givenDefaultOfflineCompilerObjectWhenNoOptionsAreChang
EXPECT_FALSE(mockOfflineCompiler->inputFileSpirV);
}
TEST(OfflineCompilerTest, whenIsMidThreadPreemptionSupportedIsCalledThenCorrectResultIsReturned) {
MockOfflineCompiler offlineCompiler;
if (!hardwarePrefix[IGFX_SKYLAKE]) {
GTEST_SKIP();
}
offlineCompiler.getHardwareInfo("skl");
offlineCompiler.hwInfo.featureTable.ftrGpGpuMidThreadLevelPreempt = false;
EXPECT_FALSE(offlineCompiler.isMidThreadPreemptionSupported(offlineCompiler.hwInfo));
offlineCompiler.hwInfo.featureTable.ftrGpGpuMidThreadLevelPreempt = true;
EXPECT_TRUE(offlineCompiler.isMidThreadPreemptionSupported(offlineCompiler.hwInfo));
}
TEST(OfflineCompilerTest, givenIntermediateRepresentationInputWhenBuildSourceCodeIsCalledThenProperTranslationContextIsUsed) {
MockOfflineCompiler mockOfflineCompiler;
std::vector<std::string> argv = {