Skip to content

Commit

Permalink
Can't take storage of Stores indiscriminately
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Jan 8, 2024
1 parent f46e7a4 commit 2f4568b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cunumeric/deferred.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,11 @@ def set_item(self, key: Any, rhs: Any) -> None:
# NOTE: Neither Store nor Storage have an __eq__, so we can
# only check that the underlying RegionField/Future corresponds
# to the same Legion handle.
if view.base.storage.same_handle(rhs.base.storage):
if (
view.base.has_storage
and rhs.base.has_storage
and view.base.storage.same_handle(rhs.base.storage)
):
return

view.copy(rhs, deep=False)
Expand Down

0 comments on commit 2f4568b

Please sign in to comment.