Skip to content

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

Merged
magnatelee merged 3 commits intonv-legate:branch-22.12from
magnatelee:fix-0d-region-backed-stores
Nov 9, 2022
Merged

Construct region-backed 0D stores in a correct way#450
magnatelee merged 3 commits intonv-legate:branch-22.12from
magnatelee:fix-0d-region-backed-stores

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