feature: Use zesInit on windows always

Related-To: NEO-15060

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
shubham kumar
2025-09-15 09:49:57 +00:00
committed by Compute-Runtime-Automation
parent 6b37243bfa
commit cf7a4bc0dd
15 changed files with 54 additions and 12 deletions

View File

@@ -55,7 +55,8 @@ Device *WddmSysmanImp::getDeviceHandle() {
}
ze_bool_t WddmSysmanImp::isDriverModelSupported() {
return true;
auto usingZesInit = NEO::debugManager.flags.EnableSysmanLegacyModeUsingZesInit.get();
return !usingZesInit;
}
std::vector<ze_device_handle_t> &WddmSysmanImp::getDeviceHandles() {

View File

@@ -17,6 +17,7 @@ namespace L0 {
namespace ult {
void SysmanDeviceFixture::SetUp() {
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(false);
if (!sysmanUltsEnable) {
GTEST_SKIP();
}

View File

@@ -37,6 +37,7 @@ class SysmanDeviceFixture : public DeviceFixture, public SysmanEnabledFixture {
SysmanDeviceImp *pSysmanDeviceImp = nullptr;
OsSysman *pOsSysman = nullptr;
PublicWddmSysmanImp *pWddmSysmanImp = nullptr;
DebugManagerStateRestore restorer;
};
} // namespace ult

View File

@@ -95,5 +95,12 @@ TEST_F(SysmanDeviceFixture, GivenValidSysmanDeviceImpWhenOsSysmanInitFailsThenUn
delete testOsSysman;
}
TEST_F(SysmanDeviceFixture, GivenValidWddmSysmanImpWhenExternBooleanUseZesInitOnWddmIsTrueThenFalseIsReturned) {
EXPECT_EQ(true, pWddmSysmanImp->isDriverModelSupported());
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(true);
EXPECT_EQ(false, pWddmSysmanImp->isDriverModelSupported());
debugManager.flags.EnableSysmanLegacyModeUsingZesInit.set(false);
}
} // namespace ult
} // namespace L0