From 11413afa4bb9c50d5fc7ccaaf1a0e25e7064ec09 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 7 Jun 2013 10:37:21 -0400 Subject: [PATCH] Prevent CL object arrays. --- pyopencl/array.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyopencl/array.py b/pyopencl/array.py index 05af9f4e..c6e364f5 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -438,6 +438,9 @@ class Array(object): # }}} + if dtype == np.object: + raise TypeError("object arrays on the compute device are not allowed") + self.queue = queue self.shape = shape self.dtype = dtype -- GitLab