Skip to content
Snippets Groups Projects
Commit 6b64e8ae authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Accommodate Debian's broken CL3 headers

parent 93350c19
No related branches found
No related tags found
1 merge request!124Opencl 3
......@@ -204,7 +204,7 @@ const_ext_lookup = {
"WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT": cl_30,
"GENERIC_ADDRESS_SPACE_SUPPORT": cl_30,
"OPENCL_C_FEATURES": cl_30,
"DEVICE_ENQUEUE_SUPPORT": cl_30,
"DEVICE_ENQUEUE_CAPABILITIES": cl_30,
"PIPE_SUPPORT": cl_30,
},
......
......@@ -500,7 +500,12 @@ void pyopencl_expose_constants(py::module &m)
ADD_ATTR(DEVICE_, WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT);
ADD_ATTR(DEVICE_, GENERIC_ADDRESS_SPACE_SUPPORT);
ADD_ATTR(DEVICE_, OPENCL_C_FEATURES);
ADD_ATTR(DEVICE_, DEVICE_ENQUEUE_SUPPORT);
#ifdef CL_DEVICE_DEVICE_ENQUEUE_SUPPORT
// some busted headers shipped by Debian have this
cls.attr("DEVICE_ENQUEUE_CAPABILITIES") = CL_DEVICE_DEVICE_ENQUEUE_SUPPORT;
#else
ADD_ATTR(DEVICE_, DEVICE_ENQUEUE_CAPABILITIES);
#endif
ADD_ATTR(DEVICE_, PIPE_SUPPORT);
#endif
/* cl_intel_advanced_motion_estimation */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment