Navigation Menu

Skip to content

Commit

Permalink
Fix gpuarray.set_async
Browse files Browse the repository at this point in the history
  • Loading branch information
untom committed Jul 29, 2015
1 parent 087a97b commit 51599aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/gpuarray.py
Expand Up @@ -1161,7 +1161,7 @@ def _memcpy_discontig(dst, src, async=False, stream=None):
else:
src = _as_strided(src, shape=(src.size,), strides=(src.dtype.itemsize,))
if async:
drv.memcpy_htod(dst.gpudata, src, stream=stream)
drv.memcpy_htod_async(dst.gpudata, src, stream=stream)
else:
drv.memcpy_htod(dst.gpudata, src)
return
Expand Down

0 comments on commit 51599aa

Please sign in to comment.