You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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 <alexey.bader@intel.com>
0 commit comments