================
@@ -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".
----------------
gmlueck wrote:

> There's an open request for ocloc to accept them in `-device` `(ex: xe-pvc)`, 
> along with the numeric form `(ex: xe_12.60.7)`.

That's correct.  The `ocloc` tool will accept all of these names, so there is 
no need for any name translation in clang.  You should be able to pass any 
device name that starts with "xe" directly to `ocloc`.

https://github.com/llvm/llvm-project/pull/229247
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to