-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Fix sycl::atomic
regression
#19015
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
[SYCL] Fix sycl::atomic
regression
#19015
Conversation
This is a follow-up for intel#18839 which broke host compilation of `sycl::atomic`. The actual fix is just an addition of `#include <sycl/__spirv/spirv_ops.hpp>` to `sycl/atomic.hpp`. However, I didn't want `spirv_ops.hpp` appear again in `sycl/detail/core.hpp` and therefore I went further to make sure that `sycl/atomic.hpp` isn't used by `sycl/accessor.hpp` which prompted other changes in this PR.
…atomic-regression
Wow, that Windows issue is persistent I honestly struggle to understand how this patch could cause it at all:
And I haven't been able to reproduce it so far, but I will make more attempts |
I still haven't figured out what exactly happens here. From what I see, the way of how I will spend a little more time investigating that, but I'm not sure that it is worth blocking the PR by it (considering the impact of the issue I'm fixing vs the impact of this issue): there are known reports of this macro being completely broken, so I wouldn't be surprised if this is a one more bug in there. My plan is to have |
#19114 was submitted to record the issue, I'm making a few more local attempts to try and resolve it, but if they fail, I will just redefine |
@AlexeySachkov, #18839 broke SYCL-CTS build more than a week ago. Considering that the fix takes so long, I would prefer you to revert #18839 and re-apply fixed version. |
@bader I believe this one is ready to merge |
@KornevNikita, could you approve then, please? |
This is a follow-up for #18839 which broke host compilation of
sycl::atomic
.The actual fix is just an addition of
#include <sycl/__spirv/spirv_ops.hpp>
tosycl/atomic.hpp
.However, I didn't want
spirv_ops.hpp
to appear again insycl/detail/core.hpp
and therefore I went further to make sure thatsycl/atomic.hpp
isn't used bysycl/accessor.hpp
which prompted other changes in this PR.