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

Recognize CL 2.1, 2.2 versions

parent 382b7d30
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,11 @@ ...@@ -81,7 +81,11 @@
#define PYOPENCL_CL_VERSION PYOPENCL_PRETEND_CL_VERSION #define PYOPENCL_CL_VERSION PYOPENCL_PRETEND_CL_VERSION
#else #else
#if defined(CL_VERSION_2_0) #if defined(CL_VERSION_2_2)
#define PYOPENCL_CL_VERSION 0x2020
#elif defined(CL_VERSION_2_1)
#define PYOPENCL_CL_VERSION 0x2010
#elif defined(CL_VERSION_2_0)
#define PYOPENCL_CL_VERSION 0x2000 #define PYOPENCL_CL_VERSION 0x2000
#elif defined(CL_VERSION_1_2) #elif defined(CL_VERSION_1_2)
#define PYOPENCL_CL_VERSION 0x1020 #define PYOPENCL_CL_VERSION 0x1020
......
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