Skip to content

[NFCI][SYCL] Remove Reduction::getOutPointer #7184

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

Conversation

aelovikov-intel
Copy link
Contributor

Both USM pointers/accessors work with operator[] just fine.

Both USM pointers/accessors work with operator[] just fine.
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner October 25, 2022 22:35
aelovikov-intel added a commit to aelovikov-intel/llvm-test-suite that referenced this pull request Oct 25, 2022
@aelovikov-intel
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1348

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM! Small comment, but it is not blocking.

// Each of local accessors keeps two partial sums: in
// 0-th and WGsize-th elements. Combine them into final
// partial sums and write to output accessors.
BOp(LocalReds[0], LocalReds[WGSize]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Uff! Those comments are really messing with the formatter. Might it make sense to move the comments to before the statement and combine them? Say something like:

If it is a uniform work-group with a power-of-two size, ..., otherwise ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree clang-format did something weird here, but, IMO, it's not that bad. I plan more refactoring, will see if can come up with something in one of next PRs.

steffenlarsen pushed a commit to intel/llvm-test-suite that referenced this pull request Oct 27, 2022
@steffenlarsen steffenlarsen merged commit 4b5ad3c into intel:sycl Oct 27, 2022
@aelovikov-intel aelovikov-intel deleted the reduction-remove-getOutPointer branch November 8, 2022 20:41
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Feb 23, 2023
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
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