mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: set default Xe Hpc core device hierarchy to flat
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
13aabc9cb2
commit
5c1d82349b
@@ -422,6 +422,11 @@ bool GfxCoreHelperHw<Family>::isRelaxedOrderingSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
char const *GfxCoreHelperHw<Family>::getDefaultDeviceHierarchy() const {
|
||||
return deviceHierarchyFlat;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
namespace NEO {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user