Skip to content
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

Only pass one wrapper object in SYCL reductions #6047

Merged
merged 2 commits into from
May 19, 2023

Conversation

masterleinad
Copy link
Contributor

Passing a combined functor reducer object to ParallelReduce allows us to also pass the combined object (wrapped) into the kernel. For SYCL, we were still passing functor and reducer separately which could cause worse performance in case there was no explicit reducer (and therefore we effectively only use the functor). Also, passing two objects via IndirectKernelMem could cause problems when deciding if we can use the device-copyable code path since the limits there are only really designed for one object.

I didn't notice any significant differences in performance with respect to #6035.

@masterleinad masterleinad marked this pull request as ready for review May 11, 2023 17:32
@masterleinad masterleinad requested a review from nliber May 12, 2023 13:55
@dalg24 dalg24 merged commit 87c7be9 into kokkos:develop May 19, 2023
25 checks passed
@masterleinad masterleinad mentioned this pull request May 25, 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.

None yet

3 participants