Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Andreas Klöckner
grudge
Commits
38630973
Commit
38630973
authored
2 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Track meshmode renames in grudge array context
parent
53be4901
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
grudge/array_context.py
+10
-8
10 additions, 8 deletions
grudge/array_context.py
with
10 additions
and
8 deletions
grudge/array_context.py
+
10
−
8
View file @
38630973
...
...
@@ -74,7 +74,7 @@ from arraycontext.pytest import (
register_pytest_array_context_factory
)
from
arraycontext
import
ArrayContext
from
arraycontext.container
import
ArrayContainer
from
arraycontext.impl.pytato.compile
import
LazilyCompilingFunctionCaller
from
arraycontext.impl.pytato.compile
import
Lazily
PyOpenCL
CompilingFunctionCaller
if
TYPE_CHECKING
:
import
pytato
as
pt
...
...
@@ -131,7 +131,8 @@ class MPIBasedArrayContext:
# {{{ distributed + pytato
class
_DistributedLazilyCompilingFunctionCaller
(
LazilyCompilingFunctionCaller
):
class
_DistributedLazilyCompilingFunctionCaller
(
LazilyPyOpenCLCompilingFunctionCaller
):
def
_dag_to_compiled_func
(
self
,
dict_of_named_arrays
,
input_id_to_name_in_program
,
output_id_to_name_in_program
,
output_template
):
...
...
@@ -201,8 +202,8 @@ class _DistributedLazilyCompilingFunctionCaller(LazilyCompilingFunctionCaller):
class
_DistributedCompiledFunction
:
"""
A callable which captures the :class:`pytato.target.BoundProgram` resulting
from calling :attr:`~LazilyCompilingFunctionCaller.f` with a given
set of
input types, and generating :mod:`loopy` IR from it.
from calling :attr:`~Lazily
PyOpenCL
CompilingFunctionCaller.f` with a given
set of
input types, and generating :mod:`loopy` IR from it.
.. attribute:: pytato_program
...
...
@@ -210,8 +211,9 @@ class _DistributedCompiledFunction:
A mapping from input id to the placeholder name in
:attr:`CompiledFunction.pytato_program`. Input id is represented as the
position of :attr:`~LazilyCompilingFunctionCaller.f`
'
s argument augmented
with the leaf array
'
s key if the argument is an array container.
position of :attr:`~LazilyPyOpenCLCompilingFunctionCaller.f`
'
s argument
augmented with the leaf array
'
s key if the argument is an array
container.
.. attribute:: output_id_to_name_in_program
...
...
@@ -243,10 +245,10 @@ class _DistributedCompiledFunction:
representation.
"""
from
arraycontext.impl.pytato.compile
import
_args_to_
cl
_buffers
from
arraycontext.impl.pytato.compile
import
_args_to_
device
_buffers
from
arraycontext.impl.pyopencl.taggable_cl_array
import
to_tagged_cl_array
from
arraycontext.impl.pytato.utils
import
get_cl_axes_from_pt_axes
input_args_for_prg
=
_args_to_
cl
_buffers
(
input_args_for_prg
=
_args_to_
device
_buffers
(
self
.
actx
,
self
.
input_id_to_name_in_program
,
arg_id_to_arg
)
from
pytato.distributed
import
execute_distributed_partition
...
...
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