@@ -1381,6 +1381,21 @@ class VulkanDevice : public offloadtest::Device {
13811381 const uint64_t DriverInfoSz =
13821382 strnlen (DriverProps.driverInfo , VK_MAX_DRIVER_INFO_SIZE );
13831383 DriverVersion = std::string (DriverProps.driverInfo , DriverInfoSz);
1384+
1385+ // 0x8086 is the Vendor ID for Intel
1386+ if (Props.vendorID == 0x8086 ) {
1387+ const IntelGpuEra Era =
1388+ getIntelGpuEra (static_cast <uint16_t >(Props.deviceID ));
1389+ if (Era == IntelGpuEra::Gen7_to_10)
1390+ GPUGeneration = " Intel Gen7-10" ;
1391+ else if (Era == IntelGpuEra::Gen11_to_14_and_Xe)
1392+ GPUGeneration = " Intel Gen11-14/Xe" ;
1393+ else
1394+ GPUGeneration = " Intel Unknown" ;
1395+ } else {
1396+ // We don't have a need yet to identify other GPU vendors.
1397+ GPUGeneration = " Unknown" ;
1398+ }
13841399#if defined(__APPLE__) && defined(__aarch64__)
13851400 // Apple silicon Macs may have multiple Vulkan drivers sharing one device
13861401 // name. Include the driver name in the description to enable
@@ -3901,6 +3916,7 @@ llvm::Error offloadtest::initializeVulkanDevices(
39013916 return Err;
39023917
39033918 for (const auto &PDev : PhysicalDevices) {
3919+
39043920 auto DeviceOrErr = VulkanDevice::create (VulkanInstanceShPtr, PDev,
39053921 AvailableInstanceLayers);
39063922 if (!DeviceOrErr) {
0 commit comments