diff --git a/pyopencl/reduction.py b/pyopencl/reduction.py index 1c6146bb2312b44e9b74a60f8db03a3eec8e4e72..750e85e36db949b0120a1e42938c8d820199c62e 100644 --- a/pyopencl/reduction.py +++ b/pyopencl/reduction.py @@ -249,7 +249,7 @@ class ReductionKernel: neutral, reduce_expr, map_expr=None, arguments=None, name="reduce_kernel", options="", preamble=""): - self.dtype_out = dtype_out + dtype_out = self.dtype_out = np.dtype(dtype_out) self.stage_1_inf = get_reduction_kernel(ctx, dtype_to_ctype(dtype_out), dtype_out.itemsize,