Driver Info API
Functions
-
constexpr bool operator==(const DeviceAttributes &l, const GpuDesc &r)
-
constexpr bool operator!=(const DeviceAttributes &l, const GpuDesc &r)
-
constexpr bool operator>=(const DeviceAttributes &l, const GpuDesc &r)
-
struct GpuDesc
- #include <dag_gpuDesc.h>
To describe a GPU category and make query with it. Example usage: if (auto &desc = d3d::get_driver_desc(); desc.info >= GpuDesc{.vendor = GpuVendor::INTEL, .family = GpuDesc::ALCHEMIST}) …
Public Members
-
decltype(DeviceAttributes::vendor) vendor = GpuVendor::UNKNOWN
Dagor specific value about the vendor of the currently use GPU.
-
decltype(DeviceAttributes::isUMA) isUMA = false
Unified Memory Architecture, true if the GPU is integrated.
-
decltype(DeviceAttributes::vendorId) vendorId = DeviceAttributes::UNKNOWN
ID of the vendor.
-
decltype(DeviceAttributes::family) family = DeviceAttributes::UNKNOWN
Internal representation of the currently used GPU’s microarchitecture, aka family.
-
decltype(DeviceAttributes::vendor) vendor = GpuVendor::UNKNOWN