fix: remove defaultProfilingTimerResolution from RuntimeCapabilityTable

Related-To: NEO-12275
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
This commit is contained in:
Marcel Skierkowski
2024-11-04 10:14:17 +00:00
committed by Compute-Runtime-Automation
parent f8f1557ec7
commit 49d999abe6
40 changed files with 101 additions and 140 deletions

View File

@@ -74,7 +74,7 @@ ze_result_t SysmanDeviceImp::init() {
double SysmanDeviceImp::getTimerResolution() {
getRootDeviceEnvironmentRef().initOsTime();
return getRootDeviceEnvironment().osTime.get()->getDynamicDeviceTimerResolution(getHardwareInfo());
return getRootDeviceEnvironment().osTime.get()->getDynamicDeviceTimerResolution();
}
ze_result_t SysmanDeviceImp::deviceGetProperties(zes_device_properties_t *pProperties) {

View File

@@ -75,9 +75,8 @@ class SysmanGlobalOperationsFixture : public SysmanDeviceFixture {
void SetUp() override {
SysmanDeviceFixture::SetUp();
auto &hwInfo = pLinuxSysmanImp->getParentSysmanDeviceImp()->getHardwareInfo();
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime = MockOSTime::create();
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution(hwInfo);
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution();
pEngineHandleContextOld = pSysmanDeviceImp->pEngineHandleContext;
pDiagnosticsHandleContextOld = pSysmanDeviceImp->pDiagnosticsHandleContext;
@@ -1244,8 +1243,7 @@ TEST_F(SysmanGlobalOperationsFixture, WhenGettingDevicePropertiesThenSubslicesPe
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhenCallingGetPropertiesThenCorrectTimerResolutionInCorePropertiesAreReturned) {
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime.reset(new NEO::MockOSTimeWithConstTimestamp());
auto pHwInfo = pLinuxSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironment().getMutableHardwareInfo();
double mockedTimerResolution = pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironment().osTime->getDynamicDeviceTimerResolution(*pHwInfo);
double mockedTimerResolution = pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironment().osTime->getDynamicDeviceTimerResolution();
zes_device_properties_t properties = {};
ze_result_t result = zesDeviceGetProperties(pSysmanDevice->toHandle(), &properties);
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
@@ -1339,9 +1337,8 @@ class SysmanDevicePropertiesExtensionTestMultiDevice : public SysmanMultiDeviceF
void SetUp() override {
SysmanMultiDeviceFixture::SetUp();
for (auto i = 0u; i < execEnv->rootDeviceEnvironments.size(); i++) {
auto &hwInfo = *execEnv->rootDeviceEnvironments[i]->getMutableHardwareInfo();
execEnv->rootDeviceEnvironments[i]->osTime = MockOSTime::create();
execEnv->rootDeviceEnvironments[i]->osTime->setDeviceTimerResolution(hwInfo);
execEnv->rootDeviceEnvironments[i]->osTime->setDeviceTimerResolution();
}
}
};
@@ -1460,9 +1457,8 @@ class SysmanDeviceGetByUuidExperimentalTestMultiDevice : public SysmanMultiDevic
void SetUp() override {
SysmanMultiDeviceFixture::SetUp();
for (auto i = 0u; i < execEnv->rootDeviceEnvironments.size(); i++) {
auto &hwInfo = *execEnv->rootDeviceEnvironments[i]->getMutableHardwareInfo();
execEnv->rootDeviceEnvironments[i]->osTime = MockOSTime::create();
execEnv->rootDeviceEnvironments[i]->osTime->setDeviceTimerResolution(hwInfo);
execEnv->rootDeviceEnvironments[i]->osTime->setDeviceTimerResolution();
}
}
};

View File

@@ -26,9 +26,8 @@ class SysmanGlobalOperationsFixtureXe : public SysmanDeviceFixture {
void SetUp() override {
SysmanDeviceFixture::SetUp();
auto &hwInfo = pLinuxSysmanImp->getParentSysmanDeviceImp()->getHardwareInfo();
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime = MockOSTime::create();
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution(hwInfo);
pLinuxSysmanImp->getParentSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution();
pSysmanKmdInterface = new MockSysmanKmdInterfaceXe(pLinuxSysmanImp->getSysmanProductHelper());
pSysfsAccess = new MockGlobalOperationsSysfsAccess();

View File

@@ -29,9 +29,8 @@ class SysmanGlobalOperationsFixture : public SysmanDeviceFixture {
void SetUp() override {
SysmanDeviceFixture::SetUp();
auto &hwInfo = pWddmSysmanImp->getSysmanDeviceImp()->getHardwareInfo();
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime = MockOSTime::create();
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution(hwInfo);
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution();
}
void init(bool allowSetCalls) {
@@ -156,8 +155,7 @@ TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhenCallingGetProper
TEST_F(SysmanGlobalOperationsFixture, GivenValidDeviceHandleWhenCallingGetPropertiesThenCorrectTimerResolutionInCorePropertiesAreReturned) {
init(true);
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime.reset(new NEO::MockOSTimeWithConstTimestamp());
auto pHwInfo = pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironment().getMutableHardwareInfo();
double mockedTimerResolution = pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironment().osTime->getDynamicDeviceTimerResolution(*pHwInfo);
double mockedTimerResolution = pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironment().osTime->getDynamicDeviceTimerResolution();
zes_device_properties_t properties = {};
ze_result_t result = zesDeviceGetProperties(pSysmanDevice->toHandle(), &properties);
@@ -216,9 +214,8 @@ class SysmanGlobalOperationsUuidFixture : public SysmanDeviceFixture {
L0::Sysman::SysmanDeviceImp *device = nullptr;
void SetUp() override {
SysmanDeviceFixture::SetUp();
auto &hwInfo = pWddmSysmanImp->getSysmanDeviceImp()->getHardwareInfo();
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime = MockOSTime::create();
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution(hwInfo);
pWddmSysmanImp->getSysmanDeviceImp()->getRootDeviceEnvironmentRef().osTime->setDeviceTimerResolution();
pGlobalOperationsImp = static_cast<L0::Sysman::GlobalOperationsImp *>(pSysmanDeviceImp->pGlobalOperations);
device = pSysmanDeviceImp;
}