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 slot calculation in reduction kernel #148

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

manopapad
Copy link
Contributor

The linearization logic was wrong, causing threads to sometimes reduce into the wrong output index, in the case where the reduction collapsed the last axis.

The problematic case was not exercised in the old test because the shape of the input array would never get partitioned in a way that would trigger the issue (at least when running on 2 processors).

@manopapad manopapad merged commit b6b8046 into nv-legate:branch-22.01 Dec 10, 2021
@manopapad manopapad deleted the red-slot-bug branch December 24, 2021 02:24
fduguet-nv pushed a commit to fduguet-nv/cunumeric that referenced this pull request Mar 29, 2022
Be a little more lenient in fake-dims check
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.

1 participant