mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Setting default device id for acronym
This PR includes: - Move product config implementation from ocloc arg helper to product config helper. - Add default device id setting for each platform configuration. - Add & move hw info config tests from opencl to shared Signed-off-by: Daria Hinz <daria.hinz@intel.com> Related-To: NEO-7112
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
05ad32704b
commit
01af53b63c
@@ -271,7 +271,7 @@ HWTEST2_F(MetricIpSamplingLinuxTestPrelim, GivenSupportedProductFamilyAndUnsuppo
|
||||
|
||||
auto hwInfo = neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.eProductFamily = productFamily;
|
||||
hwInfo->platform.usDeviceID = NEO::PVC_XL_IDS.front();
|
||||
hwInfo->platform.usDeviceID = NEO::pvcXlDeviceIds.front();
|
||||
EXPECT_FALSE(metricIpSamplingOsInterface->isDependencyAvailable());
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ HWTEST2_F(MetricIpSamplingLinuxTestPrelim, GivenSupportedProductFamilyAndSupport
|
||||
auto hwInfo = neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.eProductFamily = productFamily;
|
||||
|
||||
for (auto deviceId : NEO::PVC_XT_IDS) {
|
||||
for (const auto &deviceId : NEO::pvcXtDeviceIds) {
|
||||
hwInfo->platform.usDeviceID = deviceId;
|
||||
EXPECT_TRUE(metricIpSamplingOsInterface->isDependencyAvailable());
|
||||
}
|
||||
@@ -290,7 +290,7 @@ HWTEST2_F(MetricIpSamplingLinuxTestPrelim, GivenDriverOpenFailsWhenIsDependencyA
|
||||
|
||||
auto hwInfo = neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.eProductFamily = productFamily;
|
||||
hwInfo->platform.usDeviceID = NEO::PVC_XT_IDS.front();
|
||||
hwInfo->platform.usDeviceID = NEO::pvcXtDeviceIds.front();
|
||||
|
||||
auto drm = static_cast<DrmPrelimMock *>(device->getOsInterface().getDriverModel()->as<NEO::Drm>());
|
||||
VariableBackup<int> backupCsTimeStampFrequency(&drm->storedCsTimestampFrequency, 0);
|
||||
@@ -303,7 +303,7 @@ HWTEST2_F(MetricIpSamplingLinuxTestPrelim, GivenIoctlHelperFailsWhenIsDependency
|
||||
|
||||
auto hwInfo = neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.eProductFamily = productFamily;
|
||||
hwInfo->platform.usDeviceID = NEO::PVC_XT_IDS.front();
|
||||
hwInfo->platform.usDeviceID = NEO::pvcXtDeviceIds.front();
|
||||
|
||||
auto drm = static_cast<DrmPrelimMock *>(device->getOsInterface().getDriverModel()->as<NEO::Drm>());
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ HWTEST2_F(MetricIpSamplingLinuxTestUpstream, GivenSupportedProductFamilyAndSuppo
|
||||
auto hwInfo = neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.eProductFamily = productFamily;
|
||||
|
||||
for (auto deviceId : NEO::PVC_XT_IDS) {
|
||||
for (const auto &deviceId : NEO::pvcXtDeviceIds) {
|
||||
hwInfo->platform.usDeviceID = deviceId;
|
||||
EXPECT_FALSE(metricIpSamplingOsInterface->isDependencyAvailable());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user