Initialize hwInfo in ocloc before passing it to IGC

Related-To: NEO-3735

Change-Id: Ice69f6b21b960bda8fe4aa9667bc03cc3dbbc086
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
Pawel Wilma
2020-07-01 00:22:10 +02:00
committed by sys_ocldev
parent be5364ac2f
commit 2e6fc92372
3 changed files with 39 additions and 35 deletions

View File

@ -667,7 +667,9 @@ TEST(OfflineCompilerTest, getHardwareInfo) {
ASSERT_NE(nullptr, mockOfflineCompiler);
EXPECT_EQ(CL_INVALID_DEVICE, mockOfflineCompiler->getHardwareInfo("invalid"));
EXPECT_EQ(0u, mockOfflineCompiler->getHardwareInfo().gtSystemInfo.SliceCount);
EXPECT_EQ(CL_SUCCESS, mockOfflineCompiler->getHardwareInfo(gEnvironment->devicePrefix.c_str()));
EXPECT_NE(0u, mockOfflineCompiler->getHardwareInfo().gtSystemInfo.SliceCount);
}
TEST(OfflineCompilerTest, storeBinary) {