Skip to content
Snippets Groups Projects
Commit 133e8fa0 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Teach PyOpenCLArrayContext how to deal with loopy programs without loops

parent 5eec699e
No related branches found
No related tags found
No related merge requests found
Pipeline #222675 passed
......@@ -244,11 +244,17 @@ class PyOpenCLArrayContext(ArrayContext):
if "idof" in all_inames:
inner_iname = "idof"
elif "i0" in all_inames:
outer_iname = "i0"
if "i1" in all_inames:
inner_iname = "i1"
elif not all_inames:
# no loops, nothing to transform
return t_unit
else:
raise RuntimeError(
"Unable to reason what outer_iname and inner_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