diff --git a/arraycontext/impl/pytato/__init__.py b/arraycontext/impl/pytato/__init__.py index 80803957e840b19e9f03bef85caa7b6a3d020dd9..23bf7087226ce9caad67d151d982bf523ef011b5 100644 --- a/arraycontext/impl/pytato/__init__.py +++ b/arraycontext/impl/pytato/__init__.py @@ -1,7 +1,20 @@ """ .. currentmodule:: arraycontext + +A :mod:`pytato`-based array context defers the evaluation of an array until its +frozen. The execution contexts for the evaluations are specific to an +:class:`~arraycontext.ArrayContext` type. For ex. +:class:`~arraycontext.PytatoPyOpenCLArrayContext` uses :mod:`pyopencl` to +JIT-compile and execute the array expressions. + +Following :mod:`pytato`-based array context are provided: + .. autoclass:: PytatoPyOpenCLArrayContext + +Compiling a python callable +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + .. automodule:: arraycontext.impl.pytato.compile """ __copyright__ = """ @@ -37,7 +50,7 @@ from pytools.tag import Tag class PytatoPyOpenCLArrayContext(ArrayContext): """ A :class:`ArrayContext` that uses :mod:`pytato` data types to represent - the DOF arrays targeting OpenCL for offloading operations. + the arrays targeting OpenCL for offloading operations. .. attribute:: queue diff --git a/doc/array_context.rst b/doc/array_context.rst index 7c8b5810f426ec8db42200e4dc7f41924edbc41f..7a12dfb607790494910eb9232e2220e4e9bf8ffa 100644 --- a/doc/array_context.rst +++ b/doc/array_context.rst @@ -14,7 +14,7 @@ Array context based on :mod:`pyopencl.array` .. automodule:: arraycontext.impl.pyopencl -Array context based on :mod:`pytato` ------------------------------------- +Lazy/Deferred evaluation array context based on :mod:`pytato` +------------------------------------------------------------- .. automodule:: arraycontext.impl.pytato