mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
fix: adjust IGC hwinfo for related tests
Also update builtin kernels Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6e35d055f2
commit
9aad7750be
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -1194,6 +1194,8 @@ TEST_F(CompilerInterfaceTest, givenCompilerInterfacewhenGettingIgcFeaturesAndWor
|
||||
|
||||
TEST_F(CompilerInterfaceTest, GivenRequestForNewFclTranslationCtxWhenInterfaceVersionAbove4ThenPopulatePlatformInfo) {
|
||||
auto device = this->pDevice;
|
||||
auto hwInfo = device->getHardwareInfo();
|
||||
device->getCompilerProductHelper().adjustHwInfoForIgc(hwInfo);
|
||||
|
||||
auto prevDebugVars = getFclDebugVars();
|
||||
|
||||
@@ -1207,7 +1209,7 @@ TEST_F(CompilerInterfaceTest, GivenRequestForNewFclTranslationCtxWhenInterfaceVe
|
||||
ASSERT_EQ(1U, pCompilerInterface->fclDeviceContexts.size());
|
||||
auto platform = pCompilerInterface->fclDeviceContexts.begin()->second->GetPlatformHandle();
|
||||
ASSERT_NE(nullptr, platform);
|
||||
EXPECT_EQ(device->getHardwareInfo().platform.eProductFamily, platform->GetProductFamily());
|
||||
EXPECT_EQ(hwInfo.platform.eProductFamily, platform->GetProductFamily());
|
||||
|
||||
setFclDebugVars(prevDebugVars);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -81,10 +81,11 @@ TEST(ZebinValidateTargetTest, givenTargetDeviceCreatedUsingHelperFunctionWhenVal
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
auto &rootDeviceEnvironment = *executionEnvironment.rootDeviceEnvironments[0];
|
||||
auto hwInfo = *rootDeviceEnvironment.getHardwareInfo();
|
||||
auto targetDevice = getTargetDevice(rootDeviceEnvironment);
|
||||
auto &compilerProductHelper = rootDeviceEnvironment.getHelper<CompilerProductHelper>();
|
||||
compilerProductHelper.adjustHwInfoForIgc(hwInfo);
|
||||
|
||||
auto targetDevice = getTargetDevice(rootDeviceEnvironment);
|
||||
|
||||
EXPECT_TRUE(validateTargetDevice(targetDevice, NEO::Elf::EI_CLASS_32, hwInfo.platform.eProductFamily, hwInfo.platform.eRenderCoreFamily, AOT::UNKNOWN_ISA, {}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user