Skip to content
Snippets Groups Projects
Commit ef8e1d74 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

PyOpenCLArrayContext in arraycontext should know nothing about how to transform

parent 983d007f
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,16 @@ class PyOpenCLArrayContext(ArrayContext): ...@@ -199,6 +199,16 @@ class PyOpenCLArrayContext(ArrayContext):
pass pass
orig_t_unit = t_unit orig_t_unit = t_unit
from warnings import warn
warn("Using arraycontext.PyOpenCLArrayContext.transform_loopy_program "
"to transform a program. This is deprecated and will stop working "
"in 2022. Instead, subclass PyOpenCLArrayContext and implement "
"the specific logic required to transform the program for your "
"package or application. Check higher-level packages "
"(e.g. meshmode), which may already have subclasses you may want "
"to build on.",
DeprecationWarning, stacklevel=2)
# accommodate loopy with and without kernel callables # accommodate loopy with and without kernel callables
import loopy as lp import loopy as lp
......
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