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

Construct region-backed 0D stores in a correct way #450

Merged

Conversation

magnatelee
Copy link
Contributor

The core runtime currently accepts 0D shapes (()) for region-backed stores, which can later cause all sorts of inconsistencies, because 0D regions don't exist. This PR fixes that issue by constructing 0D stores as 1D singleton stores projected on the first dimension. This is sufficient to fix nv-legate/cupynumeric#500 since the transformation code already handles the exceptional 0D cases correctly.

@magnatelee magnatelee merged commit e6cc081 into nv-legate:branch-22.12 Nov 9, 2022
@magnatelee magnatelee deleted the fix-0d-region-backed-stores branch November 9, 2022 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug-fix PR is a bug fix and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get/setitem crash with RegionField-backed index/value arrays
2 participants