Skip to content

Commit

Permalink
Add device IDs for ADLN
Browse files Browse the repository at this point in the history
0x46D1, 0x46D2

Signed-off-by: Neumann, Marta <[email protected]>
  • Loading branch information
martaneu authored and Compute-Runtime-Automation committed Jul 18, 2022
1 parent db58e50 commit 7b2960f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
using namespace NEO;

TEST(AdlnDeviceIdTest, GivenSupportedDeviceIdThenHardwareInfoIsCorrect) {
std::array<DeviceDescriptor, 1> expectedDescriptors = {{
std::array<DeviceDescriptor, 3> expectedDescriptors = {{
{0x46D0, &AdlnHwConfig::hwInfo, &AdlnHwConfig::setupHardwareInfo},
{0x46D1, &AdlnHwConfig::hwInfo, &AdlnHwConfig::setupHardwareInfo},
{0x46D2, &AdlnHwConfig::hwInfo, &AdlnHwConfig::setupHardwareInfo},
}};

auto compareStructs = [](const DeviceDescriptor *first, const DeviceDescriptor *second) {
Expand Down
2 changes: 2 additions & 0 deletions shared/source/dll/devices/devices_base.inl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ DEVICE( 0xA789, AdlsHwConfig )

#ifdef SUPPORT_ADLN
DEVICE(0x46D0, AdlnHwConfig)
DEVICE(0x46D1, AdlnHwConfig)
DEVICE(0x46D2, AdlnHwConfig)
#endif

#endif
Expand Down
2 changes: 1 addition & 1 deletion shared/source/gen12lp/adln/device_ids_configs_adln.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
#include <vector>

namespace NEO {
static const std::vector<unsigned short> adlnDeviceIds{0x46D0};
static const std::vector<unsigned short> adlnDeviceIds{0x46D0, 0x46D1, 0x46D2};
} // namespace NEO

0 comments on commit 7b2960f

Please sign in to comment.