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

Accept and convexify domains on kernel creation

parent c8a3ad34
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,10 @@ def parse_domains(domains, defines):
assert isinstance(dom, (isl.Set, isl.BasicSet))
# assert dom.get_ctx() == ctx
if isinstance(dom, isl.Set):
from loopy.isl_helpers import convexify
dom = convexify(dom)
for i_iname in range(dom.dim(dim_type.set)):
iname = dom.get_dim_name(dim_type.set, i_iname)
......
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