-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][ESIMD] Unified memory API: atomic_update(usm_ptr, ...) #11862
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/test-e2e/ESIMD/unified_memory_api/atomic_update_usm_pvc_cmpxchg.cpp
Outdated
Show resolved
Hide resolved
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.
The additional changes look good. Thank you.
@sarnex - please confirm if you are Ok with the current changes.
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 for powering through all those overloads, I'm sure it was painful :)
if constexpr (L1Hint != cache_hint::none || L2Hint != cache_hint::none || | ||
(Op == atomic_op::fmin) || (Op == atomic_op::fmax) || | ||
(Op == atomic_op::fadd) || (Op == atomic_op::fsub) || | ||
!__ESIMD_DNS::isPowerOf2(N, 32)) { |
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.
Thanks, this is a lot easier to understand!
For one and two source API variants.