diff --git a/arraycontext/impl/pyopencl/__init__.py b/arraycontext/impl/pyopencl/__init__.py index 18836ef25b33e9ad1547a2f85ff73b0946a9b0be..a737428dacba2fe71b04349a797b5d05d630d3f2 100644 --- a/arraycontext/impl/pyopencl/__init__.py +++ b/arraycontext/impl/pyopencl/__init__.py @@ -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 "