-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linking to a static library fails when multiple SYCL targets are used #5330
Comments
Assigning to @mdtoguchi (the author of #5251). |
Behavior changed in clang version 14.0.0 (https://github.com/intel/llvm 02b7301). The bug is not fully resolved, but it seems it migrated to a different place:
EDIT: The tested version, 02b7301, includes #5334 mentioned below. EDIT2: Still the case with version 708a5bf |
Behaviors should be improved with #5334. After the merge of #5251, multiple targets involving static libraries had inconsistent unbundling behaviors when using |
This assertion indicates that you have encountered a known limitation of our SYCL runtime. Tagging @sergey-semenov here to provide more details about this limitation, whether there are some workarounds possible and whether there are plans to lift that limitation |
As of version e211d73, the issue appears to be resolved. |
Issue is still gone with ca9fea6, closing. |
Describe the bug
Linking to a static library containing SYCL kernels fails with a cryptic error when
-fsycl-targets
contains several architectures, e.g.-fsycl -fsycl-targets=nvptx64-nvidia-cuda,spir64
.To Reproduce
Reproducer code archive
It builds a static library
libfoo.a
containing some SYCL code, and a simplemain.cpp
file which calls a function from this library. Assumesclang++
andllvm-ar
point to IntelLLVM, built with CUDA support.Environment (please complete the following information):
Additional context
Problem appears to be introduced in c878063 (#5251).
The text was updated successfully, but these errors were encountered: