[clang] [llvm] [TargetParser][Clang] Parse Intel GPU architecture names (PR #229247)

Nikita Kornev via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 15:47:09 PDT 2026


================
@@ -716,8 +716,15 @@ static Error runAOTCompileIntelGPU(StringRef InputFile, StringRef OutputFile,
 
   StringRef Arch(Args.getLastArgValue(OPT_arch_EQ));
   assert(!Arch.empty() && "Arch must be specified for AOT compilation");
+  // ocloc spells a device without the "xe-" prefix and with "_" between words,
+  // e.g. "bmg_g21" for "xe-bmg-g21".
----------------
KornevNikita wrote:

I don't think this is guaranteed. It depends on how Greg got those `xe-*` names. @gmlueck are they modified ocloc device names?

Also, there is a request to make ocloc support the new `xe-*` names.

https://github.com/llvm/llvm-project/pull/229247


More information about the cfe-commits mailing list