Hi there, J Diviney <[email protected]> writes: > I've already posted this to stackoverflow, but then remembered that this > mailing list exists, so apologies if any of you have read it twice already.
no worries, all good. > I'm moving a simulation into pyOpenCL and can't get my data access to work. > I'm trying to supply a 1D array of vectors (well, actually several arrays, > but the example I've included just uses one). > > Currently, the first few vectors are copied over just fine, but then the > data is simply not what I supplied. One possible problem that I see in your code is that float3s are actually laid out as four floats in memory. (You can see this using sizeof() in your kernel.) When dealing with vectors such as this, it's often most convenient to use pyopencl.array.vec.float3 as the dtype. HTH, Andreas _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
