diff --git a/pyopencl/_cffi.py b/pyopencl/_cffi.py index 47c0318eb70da8c1acf4869fd6797e97ccc6cc16..b6a25e45ade7a18fc6bec11337f8f838a2aa1dcd 100644 --- a/pyopencl/_cffi.py +++ b/pyopencl/_cffi.py @@ -102,6 +102,19 @@ typedef struct _cl_buffer_region { size_t size; } cl_buffer_region; +/* cl_ext.h */ +typedef cl_ulong cl_device_partition_property_ext; +typedef cl_uint cl_image_pitch_info_qcom; +typedef struct _cl_mem_ext_host_ptr { + cl_uint allocation_type; + cl_uint host_cache_policy; +} cl_mem_ext_host_ptr; +typedef struct _cl_mem_ion_host_ptr { + cl_mem_ext_host_ptr ext_host_ptr; + int ion_filedesc; + void* ion_hostptr; +} cl_mem_ion_host_ptr; + /* c++ class pointer */ typedef struct clbase *clobj_t; """ diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index 32a37354695c30ef174c01c7707ea5ec6cf30291..dbc1ee8872820090cfdb08c11fe8d579eed78631 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -618,7 +618,6 @@ class CommandQueue(_Common): _handle_error(_lib.command_queue__finish(self.ptr)) def flush(self): _handle_error(_lib.command_queue__flush(self.ptr)) - # TODO get_context? # TODO set_property class MemoryObjectHolder(_Common):