-
Notifications
You must be signed in to change notification settings - Fork 788
[ESIMD] Fix compilation from static libraries. #5826
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
Conversation
sycl-post-link previously removed "llvm.used" global, but that was not enough as the initializer of "llvm.used" was not deleted and some elements of initializer used kernels. As a result the GenXSPIRVWriterAdaptor did not transform the kernel arguments properly thinking that the kernel was called from inside the module, which was not true. Removing the initializer fixed the issue. Signed-off-by: Vyacheslav N Klochkov <[email protected]>
ce155b8
to
c2b9568
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
@dpcpp-tools-reviewers (@AlexeySachkov , @mlychkov ) - would you please take a look at this fix. |
Also may a test be included? |
Sure, the test is available here: intel/llvm-test-suite#923 |
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
Co-authored-by: Mikhail Lychkov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much.
/verify with intel/llvm-test-suite#923 |
13 CI checks passed, 1 CI check shows up as pending, but it also passed. |
The corresponding fix in the compiler: intel/llvm#5826 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…ary (#923) The corresponding fix in the compiler: intel/llvm#5826 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…ary (intel/llvm-test-suite#923) The corresponding fix in the compiler: intel#5826 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
sycl-post-link previously removed "llvm.used" global, but that was
not enough as the initializer of "llvm.used" was not deleted and
some elements of initializer used kernels.
As a result the GenXSPIRVWriterAdaptor did not transform the kernel
arguments properly thinking that the kernel is called from another kernel,
which was not true.
Removing the initializer fixed the issue.
Signed-off-by: Vyacheslav N Klochkov [email protected]