Skip to content
Snippets Groups Projects
Commit 35241a0a authored by Dominic Kempf's avatar Dominic Kempf
Browse files

First discard parallel inames, then try use_boostable_into

parent 45bd98f8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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