Skip to content

Commit

Permalink
Tracer: fix issue with not detecting view access modes when they are …
Browse files Browse the repository at this point in the history
…used as a subscript in another view index (#288)
  • Loading branch information
NaderAlAwar authored Aug 28, 2024
1 parent 486903b commit 791a46b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pykokkos/core/fusion/access_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def visit_Subscript(self, node: ast.Subscript) -> None:
slices.insert(0, index)
current_node = current_node.value

# The subscript itself could be indexing another view
for s in slices:
self.visit(s)

# Avoid type annotations
if isinstance(current_node, ast.Attribute):
return
Expand Down

0 comments on commit 791a46b

Please sign in to comment.