Skip to content

Commit

Permalink
GPUArray.copy(): don't forget allocator (patch by Andreas Lawitzky, f…
Browse files Browse the repository at this point in the history
…ixes #106)
  • Loading branch information
inducer committed Mar 22, 2016
1 parent 9e08f58 commit 2d24bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/gpuarray.py
Expand Up @@ -275,7 +275,7 @@ def get_async(self, stream=None, ary=None):
return self.get(ary=ary, async=True, stream=stream)

def copy(self):
new = GPUArray(self.shape, self.dtype)
new = GPUArray(self.shape, self.dtype, self.allocator)
_memcpy_discontig(new, self)
return new

Expand Down

0 comments on commit 2d24bee

Please sign in to comment.