Skip to content

Commit bc0bd4f

Browse files
committed
PyOpenCL array context: don't fail if no transform
1 parent 6931a22 commit bc0bd4f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

arraycontext/impl/pyopencl/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,8 @@ def transform_loopy_program(self, t_unit: lp.TranslationUnit) -> lp.TranslationU
313313
if "i1" in all_inames:
314314
inner_iname = "i1"
315315

316-
elif not all_inames:
317-
# no loops, nothing to transform
318-
return t_unit
319-
320316
else:
321-
raise RuntimeError(
322-
"Unable to reason what outer_iname and inner_iname "
323-
f"needs to be; all_inames is given as: {all_inames}"
324-
)
317+
return t_unit
325318

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

0 commit comments

Comments
 (0)