From bffd4dad0b99607b4de225d16b2da1a145150d25 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sat, 11 Jul 2015 17:03:06 -0500 Subject: [PATCH] Fix _new_with_changes to not pass queue to constructor --- pyopencl/array.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyopencl/array.py b/pyopencl/array.py index 631ca0bc..c8fd1ed4 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -610,7 +610,7 @@ class Array(object): strides=strides, data=data, offset=offset, events=events) else: - return Array(self.context, shape, dtype, queue=queue, + return Array(self.context, shape, dtype, strides=strides, data=data, offset=offset, events=events, allocator=self.allocator) @@ -689,7 +689,6 @@ class Array(object): "and will be removed in PyCUDA 2017.x", DeprecationWarning, stacklevel=2) - assert self.flags.forc, "Array in get() must be contiguous" if self.size: -- GitLab