Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix _new_with_changes to not pass queue to constructor
  • Loading branch information
inducer committed Jul 11, 2015
1 parent b67e1a4 commit bffd4da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyopencl/array.py
Expand Up @@ -610,7 +610,7 @@ def _new_with_changes(self, data, offset, shape=None, dtype=None,
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)

Expand Down Expand Up @@ -689,7 +689,6 @@ def get(self, queue=None, ary=None, async=False):
"and will be removed in PyCUDA 2017.x",
DeprecationWarning, stacklevel=2)


assert self.flags.forc, "Array in get() must be contiguous"

if self.size:
Expand Down

0 comments on commit bffd4da

Please sign in to comment.