Hey guys, I'm trying to pass a structure to PyOpenCL (using the struct module and the pack routine) but everytime i try to pass it as an arguement I get invalid arg size error.
I've coded up an example which fails in this way https://github.com/enjalot/adventures_in_opencl/blob/master/experiments/structs/structs.py what am I missing? also, the struct in this example is 16bytes on most machines, what if i just do "ffi" (12 bytes), do i need to pad it on the python side? I was a bit confused about the struct module documentation on alignment -- Ian Johnson http://enja.org
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
