================
@@ -9768,6 +9770,13 @@ void OffloadPackager::ConstructJob(Compilation &C, const 
JobAction &JA,
         "kind=" + Kind.str(),
     };
 
+    // Add one "code=" per Intel GPU requested for this IGCA target.
+    // llvm-offload-binary joins them, so the image gets
+    // "code=xe-mtl-h,xe-mtl-u".
+    if (OffloadAction->getOffloadingDeviceKind() == Action::OFK_SYCL)
----------------
YuriPlyakhin wrote:

I think it is fine to limit some code paths to SYCL for now, if they are not 
supported for other programming models by the rest of the toolchain and 
implement it later.
But I think we should try to implement API to be SYCL-independent.

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

Reply via email to