fix: set default Xe Hpc core device hierarchy to flat

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-11 15:37:13 +00:00
committed by Compute-Runtime-Automation
parent 13aabc9cb2
commit 5c1d82349b
3 changed files with 14 additions and 2 deletions

View File

@@ -422,6 +422,11 @@ bool GfxCoreHelperHw<Family>::isRelaxedOrderingSupported() const {
return true;
}
template <>
char const *GfxCoreHelperHw<Family>::getDefaultDeviceHierarchy() const {
return deviceHierarchyFlat;
}
} // namespace NEO
namespace NEO {

View File

@@ -1556,7 +1556,7 @@ HWTEST_F(GfxCoreHelperTest, givenFlagRemoveRestrictionsOnNumberOfThreadsInGpgpuT
}
}
HWTEST_F(GfxCoreHelperTest, whenGetDefaultDeviceHierarchyThenReturnFlatHierarchy) {
HWTEST2_F(GfxCoreHelperTest, whenGetDefaultDeviceHierarchyThenReturnFlatHierarchy, IsNotXeHpcCore) {
const auto &gfxCoreHelper = getHelper<GfxCoreHelper>();
auto defaultDeviceHierarchy = gfxCoreHelper.getDefaultDeviceHierarchy();
EXPECT_STREQ("FLAT", defaultDeviceHierarchy);

View File

@@ -92,4 +92,11 @@ XE_HPC_CORETEST_F(GfxCoreHelperXeHpcCoreTest, givenGfxCoreHelperWhenAskingForRel
auto &gfxCoreHelper = mockExecutionEnvironment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>();
EXPECT_TRUE(gfxCoreHelper.isRelaxedOrderingSupported());
}
}
XE_HPC_CORETEST_F(GfxCoreHelperXeHpcCoreTest, whenGetDefaultDeviceHierarchyThenReturnFlatHierarchy) {
MockExecutionEnvironment mockExecutionEnvironment{};
auto &gfxCoreHelper = mockExecutionEnvironment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>();
auto defaultDeviceHierarchy = gfxCoreHelper.getDefaultDeviceHierarchy();
EXPECT_STREQ("FLAT", defaultDeviceHierarchy);
}