diff --git a/pyopencl/array.py b/pyopencl/array.py index 258cc32d0f70ffef5a52a60129c868492964a15a..8581ffdc9fbe475a10ad0dc2294ce526a21070ae 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -654,7 +654,8 @@ def to_device(*args, **kwargs): """Converts a numpy array to a :class:`Array`.""" def _to_device(queue, ary, allocator=None, async=False): - result = Array(queue, ary.shape, ary.dtype, allocator, strides=ary.strides) + result = Array(queue, ary.shape, ary.dtype, + allocator=allocator, strides=ary.strides) result.set(ary, async=async) return result