Skip to content
Snippets Groups Projects
Unverified Commit fe656953 authored by Matthias Diener's avatar Matthias Diener Committed by GitHub
Browse files

Merge branch 'main' into pytato

parents 95fd7be8 3a9d4020
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ THE SOFTWARE.
"""
from typing import Sequence, Union, Callable, Any
from abc import ABC, abstractmethod
from abc import ABC, abstractmethod, abstractproperty
import numpy as np
from pytools import memoize_method
......@@ -370,6 +370,11 @@ class ArrayContext(ABC):
"""
return f
# undocumented for now
@abstractproperty
def permits_inplace_modification(self):
pass
# }}}
# vim: foldmethod=marker
......@@ -423,6 +423,9 @@ class PyOpenCLArrayContext(ArrayContext):
def clone(self):
return type(self)(self.queue, self.allocator, self._wait_event_queue_length)
def permits_inplace_modification(self):
return True
# }}}
# vim: foldmethod=marker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment