<#part sign=pgpmime> On Wed, 07 Mar 2012 13:01:00 +0100, Omar <[email protected]> wrote: > Hi, > > I'm trying to copy the content of a boolean numpy array into gpu-memory. > The problem is: numpy boolean dtype is actually a byte [1] so the > resulting buffer is much larger than what i need and i can't access it > correctly using booleans.
Not sure what you mean here--a C99 bool is also a byte. If you'd like this packed into a bit array, you'd have to write a kernel that does that. Andreas _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
