================
@@ -12,7 +12,7 @@
// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu
--wrapper-verbose --save-temps --dry-run \
// RUN: --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s
--check-prefix=OPENMP
-// OPENMP: llvm-offload-binary{{.*}} {{.*}}.o
--image=kind=openmp,triple=nvptx64-nvidia-cuda,arch=sm_70,file={{.*}}.o
--image=kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx90a,file={{.*}}.o
+// OPENMP: llvm-offload-binary{{.*}} {{.*}}.o
--image=kind=openmp,triple=nvptx64-nvidia-cuda,arch=sm_70,code=,file={{.*}}.o
--image=kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx90a,code=,file={{.*}}.o
----------------
srividya-sundaram wrote:
Yes, that's expected. They are two different things:
In `sycl-intel-gpu-arch.cpp`, the driver writes the device image metadata.
It adds `code` only when `--offload-arch` names Intel GPUs, `e.g.
--offload-arch=xe-mtl-u` gives `arch=igca_30r,code=xe-mtl-u`, while
`--offload-arch=igca_30r` alone gives just `arch=igca_30r`.
Here, with `--wrapper-verbose --save-temps`, `clang-linker-wrapper` prints an
`llvm-offload-binary` command that extracts each device image again, selecting
it by its metadata.
That selection now **always** includes `code`, and an empty `code=` selects a
device image with no `code`, like the `OpenMP` ones in this test.
https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits