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

Fix bug in SYCL team_reduce #3848

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

masterleinad
Copy link
Contributor

This was only triggered for SYCL+CUDA with the increased concurrency in #3833 and large types to be reduced.

We need to make sure that idx is within [start, start+maximum_work_range) and that idx doesn't exceed team_size()-1 which means that we need to limit the upper bound by the minimum, not the maximum.

Copy link
Member

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

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

Note that this is a fixup for #3783

@dalg24 dalg24 merged commit 660a251 into kokkos:develop Mar 12, 2021
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