mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
eea582355d
commit
99d63facb5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user