mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
fix(zebin): adjust hw info for IGC when getting target device for validation
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f67f811de0
commit
6110cbe42e
@@ -1976,7 +1976,13 @@ TEST_F(ProgramTests, whenCreatingFromZebinThenAppendAllowZebinFlagToBuildOptions
|
||||
}
|
||||
|
||||
ZebinTestData::ValidEmptyProgram zebin;
|
||||
zebin.elfHeader->machine = defaultHwInfo->platform.eProductFamily;
|
||||
|
||||
auto copyHwInfo = *defaultHwInfo;
|
||||
auto compilerProductHelper = CompilerProductHelper::get(copyHwInfo.platform.eProductFamily);
|
||||
|
||||
compilerProductHelper->adjustHwInfoForIgc(copyHwInfo);
|
||||
|
||||
zebin.elfHeader->machine = copyHwInfo.platform.eProductFamily;
|
||||
|
||||
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr, mockRootDeviceIndex));
|
||||
auto program = std::make_unique<MockProgram>(toClDeviceVector(*device));
|
||||
|
||||
Reference in New Issue
Block a user