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
35241a0a
Commit
35241a0a
authored
8 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
First discard parallel inames, then try use_boostable_into
parent
45bd98f8
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
loopy/transform/iname.py
+6
-6
6 additions, 6 deletions
loopy/transform/iname.py
with
6 additions
and
6 deletions
loopy/transform/iname.py
+
6
−
6
View file @
35241a0a
...
...
@@ -920,6 +920,12 @@ def get_iname_duplication_options(knl, use_boostable_into=False):
# Get the duplication options as a tuple of iname and a set
for
iname
,
insns
in
_get_iname_duplication_options
(
insn_deps
):
# Check whether this iname has a parallel tag and discard it if so
from
loopy.kernel.data
import
ParallelTag
if
(
iname
in
knl
.
iname_to_tag
and
isinstance
(
knl
.
iname_to_tag
[
iname
],
ParallelTag
)):
continue
# If we find a duplication option and fo not use boostable_into
# information, we restart this generator with use_boostable_into=True
if
not
use_boostable_into
:
...
...
@@ -927,12 +933,6 @@ def get_iname_duplication_options(knl, use_boostable_into=False):
yield
option
return
# Check whether this iname has a parallel tag and discard it if so
from
loopy.kernel.data
import
ParallelTag
if
(
iname
in
knl
.
iname_to_tag
and
isinstance
(
knl
.
iname_to_tag
[
iname
],
ParallelTag
)):
continue
# Reconstruct an object that may be passed to the within parameter of
# loopy.duplicate_inames
from
loopy.match
import
Id
,
Or
...
...
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