-
Notifications
You must be signed in to change notification settings - Fork 797
[SYCL] Ignore 'used' attribute when emitting sycl device code #1729
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
Signed-off-by: Premanand M Rao <[email protected]>
7662ba4
to
9942662
Compare
@premanandrao, what is the motivation for this change? |
The original problem was with crash due to address space mismatch. But there was emission of some global variable with initializers forced by |
I agree that we shouldn't use 'used' as SYCL_EXTERNAL. It has the problem of being used in existing code, so we'll end up having some odd variety of non-SYCL_EXTERNAL code be valid/linkable/callable, simply because the user did attribute-used in the past. I believe a new/novel attribute is the correct way to go here. |
+1 |
Thanks @bader |
When an intrinsic function is called with `afn` flag, it's allowed to substitute an approximate calculations. So the translator can emit native versions of OpenCL extended instructions. Original commit: KhronosGroup/SPIRV-LLVM-Translator@6417ada
Signed-off-by: Premanand M Rao [email protected]