Clarify meaning of ForceDeviceId debug flag

this flag can be used only to override device id in AUB/TBX mode

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-09-19 12:31:20 +00:00
committed by Compute-Runtime-Automation
parent eea582355d
commit 99d63facb5
7 changed files with 2 additions and 79 deletions

View File

@@ -130,28 +130,6 @@ TEST(IsAllowedDeviceId, whenDebugKeyNotSetThenReturnTrue) {
EXPECT_TRUE(NEO::isAllowedDeviceId(0xdeadbeef));
}
TEST(IsAllowedDeviceId, whenForceDeviceIdDebugKeySetThenExpectSpecificValue) {
DebugManagerStateRestore rest;
DebugManager.flags.ForceDeviceId.set("167");
EXPECT_FALSE(NEO::isAllowedDeviceId(0xdeadbeef));
DebugManager.flags.ForceDeviceId.set("1678");
EXPECT_FALSE(NEO::isAllowedDeviceId(0x167));
DebugManager.flags.ForceDeviceId.set("167");
EXPECT_TRUE(NEO::isAllowedDeviceId(0x167));
}
TEST(IsAllowedDeviceId, whenForceDeviceIdDebugKeySetThenTreatAsHex) {
DebugManagerStateRestore rest;
DebugManager.flags.ForceDeviceId.set("167");
EXPECT_FALSE(NEO::isAllowedDeviceId(167));
DebugManager.flags.ForceDeviceId.set("167");
EXPECT_TRUE(NEO::isAllowedDeviceId(0x167));
}
TEST(IsAllowedDeviceId, whenFilterDeviceIdDebugKeySetThenExpectSpecificValue) {
DebugManagerStateRestore rest;
DebugManager.flags.FilterDeviceId.set("167");