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

PyOpenCL array context: don't fail if no transform

parent 6931a22f
No related branches found
No related tags found
No related merge requests found
Pipeline #610125 failed
...@@ -313,15 +313,8 @@ class PyOpenCLArrayContext(ArrayContext): ...@@ -313,15 +313,8 @@ class PyOpenCLArrayContext(ArrayContext):
if "i1" in all_inames: if "i1" in all_inames:
inner_iname = "i1" inner_iname = "i1"
elif not all_inames:
# no loops, nothing to transform
return t_unit
else: else:
raise RuntimeError( return t_unit
"Unable to reason what outer_iname and inner_iname "
f"needs to be; all_inames is given as: {all_inames}"
)
if inner_iname is not None: if inner_iname is not None:
t_unit = lp.split_iname(t_unit, inner_iname, 16, inner_tag="l.0") t_unit = lp.split_iname(t_unit, inner_iname, 16, inner_tag="l.0")
......
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