Skip to content
Snippets Groups Projects
Commit 237d3f62 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Generate code for bulk slabs first.

parent 30100fb5
No related branches found
No related tags found
No related merge requests found
...@@ -96,14 +96,15 @@ def get_slab_decomposition(kernel, iname, sched_index, codegen_state): ...@@ -96,14 +96,15 @@ def get_slab_decomposition(kernel, iname, sched_index, codegen_state):
slabs = [] slabs = []
if lower_slab:
slabs.append(lower_slab)
bulk_slab = isl.BasicSet.universe(space) bulk_slab = isl.BasicSet.universe(space)
if lower_bulk_bound is not None: if lower_bulk_bound is not None:
bulk_slab = bulk_slab.add_constraint(lower_bulk_bound) bulk_slab = bulk_slab.add_constraint(lower_bulk_bound)
if upper_bulk_bound is not None: if upper_bulk_bound is not None:
bulk_slab = bulk_slab.add_constraint(upper_bulk_bound) bulk_slab = bulk_slab.add_constraint(upper_bulk_bound)
slabs.append(("bulk", bulk_slab)) slabs.append(("bulk", bulk_slab))
if lower_slab:
slabs.append(lower_slab)
if upper_slab: if upper_slab:
slabs.append(upper_slab) slabs.append(upper_slab)
......
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