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

needs_iname_duplication -> not had_schedulable_iname_nesting

parent b0f3f04f
No related branches found
No related tags found
No related merge requests found
...@@ -287,12 +287,12 @@ def generate_kernel(integrals): ...@@ -287,12 +287,12 @@ def generate_kernel(integrals):
# see whether we need iname duplication to make this thing schedulable! # see whether we need iname duplication to make this thing schedulable!
# TODO: Use a clever strategy here, instead of random transformation until the problem is resolved # TODO: Use a clever strategy here, instead of random transformation until the problem is resolved
from loopy import needs_iname_duplication, get_iname_duplication_options, duplicate_inames from loopy import has_schedulable_iname_nesting, get_iname_duplication_options, duplicate_inames
while needs_iname_duplication(kernel): while not has_schedulable_iname_nesting(kernel):
# If there is a duplication that solves the problem with just one duplication, we pick that one # If there is a duplication that solves the problem with just one duplication, we pick that one
iname, within = (None, None) iname, within = (None, None)
for i, w in get_iname_duplication_options(kernel): for i, w in get_iname_duplication_options(kernel):
if not needs_iname_duplication(duplicate_inames(kernel, i, w)): if has_schedulable_iname_nesting(duplicate_inames(kernel, i, w)):
iname, within = (i, w) iname, within = (i, w)
# Otherwise pick a random one. # Otherwise pick a random one.
......
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