From 777b59958ed24dd4056e832727d3a17cb9d30c5f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 18 Aug 2011 05:48:50 -0500 Subject: [PATCH] Fix allocator passing in array.to_device. --- pyopencl/array.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyopencl/array.py b/pyopencl/array.py index 258cc32d..8581ffdc 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 -- GitLab