From 0b5ef5d645e6299924a76dd740e0f08ba943b998 Mon Sep 17 00:00:00 2001 From: Yichao Yu <yyc1992@gmail.com> Date: Sat, 21 Jun 2014 00:54:58 +0800 Subject: [PATCH] missing typedef from cl_ext.h --- pyopencl/_cffi.py | 13 +++++++++++++ pyopencl/cffi_cl.py | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pyopencl/_cffi.py b/pyopencl/_cffi.py index 47c0318e..b6a25e45 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 32a37354..dbc1ee88 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): -- GitLab