Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arraycontext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandru Fikl
arraycontext
Commits
ef8e1d74
Commit
ef8e1d74
authored
3 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arraycontext/impl/pyopencl/__init__.py
+10
-0
10 additions, 0 deletions
arraycontext/impl/pyopencl/__init__.py
with
10 additions
and
0 deletions
arraycontext/impl/pyopencl/__init__.py
+
10
−
0
View file @
ef8e1d74
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment