summaryrefslogtreecommitdiff
blob: 7527117ca032d5361e1135387c4b3abb5aa744dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/level_zero/core/test/unit_tests/sources/fabric/test_fabric.cpp
+++ b/level_zero/core/test/unit_tests/sources/fabric/test_fabric.cpp
@@ -110,7 +110,7 @@
                                const ze_pci_ext_properties_t &pciProperties) {
         EXPECT_TRUE(0 == std::memcmp(vertexProperties.uuid.id, deviceProperties.uuid.id, sizeof(vertexProperties.uuid.id)));
         if (deviceProperties.flags & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE) {
-            EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_SUBEVICE);
+            EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE);
         } else {
             EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE);
         }
--- a/level_zero/core/source/fabric/fabric.cpp
+++ b/level_zero/core/source/fabric/fabric.cpp
@@ -56,7 +56,7 @@
     memcpy_s(fabricVertex->properties.uuid.id, ZE_MAX_UUID_SIZE, deviceProperties.uuid.id, ZE_MAX_DEVICE_UUID_SIZE);
 
     if (deviceProperties.flags & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE) {
-        fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_SUBEVICE;
+        fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE;
     } else {
         fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE;
     }