Skip to content

Commit

Permalink
PyOpenCL array context: don't fail if no transform
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 11, 2024
1 parent 6931a22 commit 4abfb81
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arraycontext/impl/pyopencl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,8 @@ def transform_loopy_program(self, t_unit: lp.TranslationUnit) -> lp.TranslationU
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 "
f"needs to be; all_inames is given as: {all_inames}"
)
return t_unit

if inner_iname is not None:
t_unit = lp.split_iname(t_unit, inner_iname, 16, inner_tag="l.0")
Expand Down

0 comments on commit 4abfb81

Please sign in to comment.