Skip to content

[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

Merged
merged 10 commits into from
Nov 14, 2023

Conversation

turinevgeny
Copy link
Contributor

For one and two source API variants.

Copy link
Contributor

@v-klochkov v-klochkov left a 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.

Copy link
Contributor

@sarnex sarnex left a 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 :)

Comment on lines +3506 to +3509
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)) {
Copy link
Contributor

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!

@v-klochkov v-klochkov merged commit a220848 into intel:sycl Nov 14, 2023
@turinevgeny turinevgeny deleted the AtomicUSMArg1UnifiedMem branch November 14, 2023 17:41
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