Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
device_management_sycl_intel_device_ids.h File Reference
#include <optional>
#include <tuple>
+ Include dependency graph for device_management_sycl_intel_device_ids.h:
+ This graph shows which files directly or indirectly include this file:

Description

Lookup Intel hardware version from PCI Express ID.

Extracted into a separate file because it contains a huge data table.

Author
Andrey Alekseenko al42a.nosp@m.nd@g.nosp@m.mail..nosp@m.com

Functions

std::optional< std::tuple< int,
int, int > > 
getIntelHardwareVersionFromPciExpressID (unsigned int pciExpressID)
 Look up Intel hardware version from device's PCI Express ID. More...
 

Function Documentation

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.

Parameters
[in]pciExpressIDDevice ID reported in the device name.
Returns
major.minor.revision if device is found in the database, std::nullopt otherwise.