Gromacs
2026.0-dev-20241204-d69d709
|
#include "gmxpre.h"
#include "device_management_sycl_intel_device_ids.h"
#include <optional>
#include <unordered_map>
#include <unordered_set>
Defines the mapping from Intel PCIE device ID to hardware version.
Enumerations | |
enum | IntelProductConfig : unsigned int { BDW = 0x02000000, IntelProductConfig::SKL = 0x02400009, IntelProductConfig::KBL = 0x02404009, IntelProductConfig::CFL = 0x02408009, IntelProductConfig::APL = 0x0240c000, IntelProductConfig::GLK = 0x02410000, IntelProductConfig::WHL = 0x02414000, AML = 0x02418000, CML = 0x0241c000, ICL = 0x02c00000, IntelProductConfig::LKF = 0x02c04000, EHL = 0x02c08000, TGL = 0x03000000, IntelProductConfig::RKL = 0x03004000, RPL_S = 0x03008000, ADL_S = 0x03008000, IntelProductConfig::ADL_P = 0x0300c000, ADL_N = 0x03010000, DG1 = 0x03028000, IntelProductConfig::XEHP_SDV = 0x030c8004, IntelProductConfig::DG2_G10_A0 = 0x030dc000, IntelProductConfig::DG2_G10_A1 = 0x030dc001, DG2_G10_B0 = 0x030dc004, DG2_G10_C0 = 0x030dc008, DG2_G11_A0 = 0x030e0000, IntelProductConfig::DG2_G11_B0 = 0x030e0004, DG2_G11_B1 = 0x030e0005, DG2_G12_A0 = 0x030e4000, IntelProductConfig::PVC_XL_A0 = 0x030f0000, IntelProductConfig::PVC_XL_A0P = 0x030f0001, PVC_XT_A0 = 0x030f0003, PVC_XT_B0 = 0x030f0005, PVC_XT_B1 = 0x030f0006, PVC_XT_C0 = 0x030f0007, PVC_XT_C0_VG = 0x030f4007, IntelProductConfig::MTL_U_A0 = 0x03118000, IntelProductConfig::MTL_U_B0 = 0x03118004, MTL_H_A0 = 0x0311c000, IntelProductConfig::MTL_H_B0 = 0x0311c004, ARL_H_A0 = 0x03128000, IntelProductConfig::ARL_H_B0 = 0x03128004, BMG_G21_A0 = 0x05004000, IntelProductConfig::BMG_G21_A1 = 0x05004001, BMG_G21_B0 = 0x05004004, LNL_A0 = 0x05010000, IntelProductConfig::LNL_A1 = 0x05010001, LNL_B0 = 0x05010004 } |
Functions | |
static constexpr std::tuple < int, int, int > | getHardwareVersionFromIntelProductConfig (const IntelProductConfig productConfig) |
static std::optional < IntelProductConfig > | getProductConfigFromPciExpressID (unsigned int pciExpressID) |
std::optional< std::tuple< int, int, int > > | getIntelHardwareVersionFromPciExpressID (unsigned int pciExpressID) |
Look up Intel hardware version from device's PCI Express ID. More... | |
Variables | |
static const std::unordered_map < IntelProductConfig, std::unordered_set< unsigned int > > | c_pciExpressIdsForProduct |
|
strong |
std::optional<std::tuple<int, int, int> > getIntelHardwareVersionFromPciExpressID | ( | unsigned int | pciExpressID | ) |
Look up Intel hardware version from device's PCI Express ID.
The returned values correspond to the ones ocloc
uses.
[in] | pciExpressID | Device ID reported in the device name. |
std::nullopt
otherwise.