Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around loop nest error #6

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions loopy/transform/array_buffer_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(self, kernel, domain, sweep_inames, access_descriptors,
non1_storage_shape = []

for saxis_len in storage_shape:
has_length_non1 = saxis_len != 1
has_length_non1 = True

non1_storage_axis_flags.append(has_length_non1)

Expand Down Expand Up @@ -279,12 +279,12 @@ def __init__(self, kernel, domain, sweep_inames, access_descriptors,
from loopy.symbolic import aff_from_expr
for saxis, bi, s in zip(storage_axis_names, storage_base_indices,
storage_shape):
if s != 1:
cns = isl.Constraint.equality_from_aff(
aff_from_expr(aug_domain.get_space(),
var(saxis) - (var(saxis+"'") - bi)))
# if s != 1:
cns = isl.Constraint.equality_from_aff(
aff_from_expr(aug_domain.get_space(),
var(saxis) - (var(saxis+"'") - bi)))

aug_domain = aug_domain.add_constraint(cns)
aug_domain = aug_domain.add_constraint(cns)

# }}}

Expand All @@ -299,6 +299,7 @@ def __init__(self, kernel, domain, sweep_inames, access_descriptors,
self.aug_domain = aug_domain
self.storage_base_indices = storage_base_indices
self.non1_storage_shape = non1_storage_shape
assert non1_storage_shape == storage_shape

def augment_domain_with_sweep(self, domain, new_non1_storage_axis_names,
boxify_sweep=False):
Expand Down
Loading