Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
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
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
Ben Sepanski
loopy
Commits
68a3611d
Commit
68a3611d
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Better docs for loop domain forest
parent
a55e5138
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
doc/ref_kernel.rst
+23
-4
23 additions, 4 deletions
doc/ref_kernel.rst
with
23 additions
and
4 deletions
doc/ref_kernel.rst
+
23
−
4
View file @
68a3611d
...
...
@@ -5,8 +5,8 @@ Reference: Loopy's Model of a Kernel
.. _domain-tree:
Loop Domain
Tree
----------------
Loop Domain
Forest
----------------
--
.. {{{
...
...
@@ -29,10 +29,29 @@ Note that *n* in the example is not an iname. It is a
:ref:`domain-parameters` that is passed to the kernel by the user.
To accommodate some data-dependent control flow, there is not actually
a single loop domain, but rather a *
tree
of loop domains*
,
allowing more deeply nested domains to depend on inames
a single loop domain, but rather a *
forest
of loop domains*
(a collection
of trees)
allowing more deeply nested domains to depend on inames
introduced by domains closer to the root.
Here is an example::
{ [l] : 0 <= l <= 2 }
{ [i] : start <= i < end }
{ [j] : start <= j < end }
The i and j domains are "children" of the l domain (visible from indentation).
This is also how :mod:`loopy` prints the domain forest, to make the parent/child
relationship visible. In the example, the parameters start/end might be read
inside of the 'l' loop.
The idea is that domains form a forest (a collection of trees), and a
"sub-forest" is extracted that covers all the inames for each
instruction. Each individual sub-tree is then checked for branching,
which is ill-formed. It is declared ill-formed because intersecting, in
the above case, the l, i, and j domains could result in restrictions from the
i domain affecting the j domain by way of how i affects l--which would
be counterintuitive to say the least.)
.. _inames:
Inames
...
...
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