diff --git a/pyopencl/array.py b/pyopencl/array.py index 631ca0bc108bee39413ccc0b95ae895bd287f10c..c8fd1ed4c94d3f66a5cee52d433884b99a7be2c2 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: