diff --git a/loopy/target/pyopencl.py b/loopy/target/pyopencl.py index 73e8e00929ddc04386200d7d450b91d66439eab6..34faf0a03d60b5be391c7f49e9baf247093e965a 100644 --- a/loopy/target/pyopencl.py +++ b/loopy/target/pyopencl.py @@ -125,7 +125,8 @@ def adjust_local_temp_var_storage(kernel, device): new_storage_shape = storage_shape - new_temp_vars[temp_var.name] = temp_var.copy(storage_shape=new_storage_shape) + new_temp_vars[temp_var.name] = temp_var.copy( + storage_shape=tuple(new_storage_shape)) return kernel.copy(temporary_variables=new_temp_vars)