Skip to content

Commit

Permalink
clean up loopy cache
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Feb 17, 2025
1 parent fae85a4 commit 03fc40a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions arraycontext/impl/cupy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,7 @@ class CupyNonObjectArray(metaclass=CupyNonObjectArrayMetaclass):


class CupyArrayContext(ArrayContext):
"""
An :class:`ArrayContext` that uses :class:`cupy.ndarray` to represent arrays.
.. automethod:: __init__
"""

_loopy_transform_cache: dict[lp.TranslationUnit, lp.ExecutorBase]

def __init__(self) -> None:
super().__init__()
self._loopy_transform_cache = {}
"""An :class:`ArrayContext` that uses :class:`cupy.ndarray` to represent arrays."""

array_types = (CupyNonObjectArray,)

Expand Down

0 comments on commit 03fc40a

Please sign in to comment.