Skip to content

Commit 3d47231

Browse files
committed
Interpolate max fixed.
1 parent e7a638b commit 3d47231

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyop2/sequential.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ def code_to_compile(self):
162162
iname = "n"
163163
has_matrix = any(arg._is_mat for arg in self._args)
164164
has_rw = any(arg.access == RW for arg in self._args)
165-
has_wg = any(isinstance(arg.data, Global) and not arg.access == READ for arg in self._args)
166-
if isinstance(self._kernel.code, loopy.LoopKernel) and not (has_matrix or has_rw or has_wg):
165+
if isinstance(self._kernel.code, loopy.LoopKernel) and not (has_matrix or has_rw):
167166
wrapper = loopy.inline_callable_kernel(wrapper, self._kernel.name)
168167
wrapper = vectorise(wrapper, iname, configuration["simd_width"])
169168
code = loopy.generate_code_v2(wrapper)

0 commit comments

Comments
 (0)