On Dienstag 13 April 2010, Michael Rule wrote:
Do PyOpenCL buffers have no type ?
Nope, just a bunch of bytes.
If so, would it be worthwhile to
create a basic GPUArray class that wraps up type information and
simplifies data copying ?
Absolutely. It would probably be a good idea to steal as much as
possible from PyCUDA.
I'll probably write something with this
functionality, but I don't want to duplicate something that exists.
By all means! I'm currently finishing my thesis and defending my PhD, so
I'm not working on that yet. (That's also why I'm sometimes slow to
respond to stuff ATM.)