Skip to content

[SYCL] Fix compare_exchange_strong to properly update Expected inout param #652

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

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

aelovikov-intel
Copy link
Contributor

For device code, __spirv_AtomicCompareExchange doesn't seem to update the
Expected parameter, new value is simply returned instead. However, SYCL's API
requires the updated value to be passed through inout parameter - do so.

Signed-off-by: Andrei Elovikov andrei.elovikov@intel.com

…param

For device code, __spirv_AtomicCompareExchange doesn't seem to update the
Expected parameter, new value is simply returned instead. However, SYCL's API
requires the updated value to be passed through inout parameter - do so.

Signed-off-by: Andrei Elovikov <andrei.elovikov@intel.com>
Copy link
Contributor

@jpeyton52 jpeyton52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bader bader merged commit 627a137 into intel:sycl Sep 19, 2019
@aelovikov-intel aelovikov-intel deleted the compare_exchange_strong_fix branch August 25, 2022 20:11
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…tel/llvm-test-suite#665)

As shown by CI for intel#569, the unsupported combination of opencl && acc
still shows up. Attempt to fix this by using a common operator style
as a follow-up to intel#652.

Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants