Commit b38a8e0
committed
[SYCL][Driver] Suppress device code link warnings from llvm-link
Driver reports following warnings each time we link `fat` object and
`non-fat` object files.
warning: Linking two modules of different data layouts:
'/tmp/main-8fa6e0.o' is '' whereas 'llvm-link' is
'e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024'
The reason is that driver "unbundles" all objects files including
"non-fat" ones to get device code. Unbundler provides an empty file as
device code of "non-fat" object file, which is linked with the device
code unbundled from the "fat" objects. `llvm-link` emits warnings if
data layout string of input LLVM modules doesn't match.
This is common case when we link host-only static library to a SYCL
application (e.g. Khronos SYCL CTS).
This warning has no value for the compiler users, but might be very
annoying. While we are working on good solution to this problem, let's
suppress `llvm-link` warnings.
Signed-off-by: Alexey Bader <[email protected]>1 parent 0de6d9a commit b38a8e0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments