@@ -1522,6 +1522,22 @@ class VulkanDevice : public offloadtest::Device {
15221522 const uint64_t DriverInfoSz =
15231523 strnlen (DriverProps.driverInfo , VK_MAX_DRIVER_INFO_SIZE );
15241524 DriverVersion = std::string (DriverProps.driverInfo , DriverInfoSz);
1525+
1526+ // 0x8086 is the Vendor ID for Intel
1527+ if (Props.vendorID == 0x8086 ) {
1528+ FamilyPrefix = static_cast <uint16_t >(Props.deviceID ) & 0xFF00 ;
1529+ const IntelGpuEra Era =
1530+ getIntelGpuEra (static_cast <uint16_t >(Props.deviceID ));
1531+ if (Era == IntelGpuEra::Gen7_to_10)
1532+ GPUGeneration = " Intel Gen7-10" ;
1533+ else if (Era == IntelGpuEra::Gen11_to_14_and_Xe)
1534+ GPUGeneration = " Intel Gen11-14/Xe" ;
1535+ else
1536+ GPUGeneration = " Intel Unknown" ;
1537+ } else {
1538+ // We don't have a need yet to identify other GPU vendors.
1539+ GPUGeneration = " Unknown" ;
1540+ }
15251541#if defined(__APPLE__) && defined(__aarch64__)
15261542 // Apple silicon Macs may have multiple Vulkan drivers sharing one device
15271543 // name. Include the driver name in the description to enable
@@ -4284,6 +4300,7 @@ llvm::Error offloadtest::initializeVulkanDevices(
42844300 return Err;
42854301
42864302 for (const auto &PDev : PhysicalDevices) {
4303+
42874304 auto DeviceOrErr = VulkanDevice::create (VulkanInstanceShPtr, PDev,
42884305 AvailableInstanceLayers);
42894306 if (!DeviceOrErr) {
0 commit comments