Am 21.7.2013 um 00:55 schrieb Andreas Kloeckner:
I've just added the capability to get the 'raw' OpenCL pointer values as
Python integers for most objects exposed by OpenCL, and to create
PyOpenCL objects from such pointers-as-integers. The corresponding
The point is to make it easier to write wrappers for CL libraries that
interoperate with PyOpenCL.
Great, useful addition.
These changes have just hit the git tree.
Gregor: You submitted a patch for a from-int cast specifically for
cl_event in 2012. I'm leaving from_cl_event_as_int in there for now to
make sure I'm not breaking your code. Let's say I'll remove it in 2015.x
or sometime thereafter.
I have no objection if you remve from_cl_event_as_int already in 2013.2, together with
obj_ptr. My wrapper for the AMD FFT library uses both. Fixing the wrapper is easy, simple
Same goes from from_cl_mem_as_int.
There also used to be "obj_ptr" attributes on a number of objects that
did fundamentally the same thing as int_ptr. Those will be removed in
2013.2 unless someone requests a grace period for them.