Skip to content

[Intel] Add a means to check which intel gpu generation for vulkan and directX#1291

Open
farzonl wants to merge 3 commits into
llvm:mainfrom
farzonl:intel_gpu_generation_check
Open

[Intel] Add a means to check which intel gpu generation for vulkan and directX#1291
farzonl wants to merge 3 commits into
llvm:mainfrom
farzonl:intel_gpu_generation_check

Conversation

@farzonl
Copy link
Copy Markdown
Member

@farzonl farzonl commented Jun 5, 2026

This change fixes #709

@farzonl farzonl force-pushed the intel_gpu_generation_check branch 3 times, most recently from a76e60a to f302140 Compare June 5, 2026 03:06
Comment thread lib/API/Util.cpp
case 0x7D00: // Meteor Lake (14th Gen Core Ultra)
case 0x5600: // Arc Alchemist (Discrete Xe-HPG)
case 0x4F00: // DG1 (Discrete Xe-LP)
case 0x0B00: // Ponte Vecchio (Xe-HPC / Data Center Max)
Copy link
Copy Markdown
Member Author

@farzonl farzonl Jun 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what the family prefix is for Battlemage, so this is unlikely to work on CI. will need help figuring this out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess based on these docs BattleImage would be E2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case 0x0B00: // Ponte Vecchio (Xe-HPC / Data Center Max)
case 0x0B00: // Ponte Vecchio (Xe-HPC / Data Center Max)
case 0xE200: // Battlemage Discrete
case 0x6400: // Lunar Lake Integrated

@farzonl farzonl force-pushed the intel_gpu_generation_check branch from f302140 to cd0826f Compare June 5, 2026 14:29
Comment thread test/lit.cfg.py
Comment on lines +116 to +119
if device["GPUGeneration"] == "Intel Gen11-14/Xe":
config.available_features.add("Intel-Modern-GPU")
if device["GPUGeneration"] == "Intel Gen7-10":
config.available_features.add("Intel-Legacy-GPU")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like these names might bite us at some point in the future. Should we bikeshed them a little?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure bikeshed away. I just want a tag to xfail on.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@V-FEXrt suggested backwards looking ranges, so Intel-Gen-10 instead of Intel-Legacy-GPU and Intel-Gen-X or Intel-Gen-Current for the "modern" one. This also allows, for example, Intel-Gen-6 if we needed older GPUS (we won't...) and makes it fairly obvious how to update this if another generation pops up.

Copy link
Copy Markdown
Contributor

@bogner bogner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll let you use your discretion on the naming, and obviously we should wait for the intel bots to clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Intel] Add a means via lit and api-query to enable tests for newer generations of Intel gpus.

2 participants