mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Add compilerHwInfoConfig
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6237
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0f7378f64e
commit
cfc673b77c
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user