diff --git a/src/c_wrapper/wrap_cl.h b/src/c_wrapper/wrap_cl.h index a263f640b36ec696e03eb3e9e0134c6138554958..3bbcdec51eecebc849d732e326cf3df088bdb979 100644 --- a/src/c_wrapper/wrap_cl.h +++ b/src/c_wrapper/wrap_cl.h @@ -63,6 +63,14 @@ typedef cl_bitfield cl_mem_migration_flags_ext; #endif +#if PYOPENCL_CL_VERSION < 0x1020 +typedef intptr_t cl_device_partition_property; +#endif + +#ifndef cl_ext_device_fission +typedef cl_ulong cl_device_partition_property_ext; +#endif + namespace pyopencl { struct clbase; }