From dc006debb0f54ae67284b103b7a9c07c6992c676 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 13 Sep 2020 13:45:18 -0500 Subject: [PATCH] Fix version handling --- src/wrap_cl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 42ee4c11..d939fe1a 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -52,7 +52,7 @@ #else // elsewhere ------------------------------------------------------------------ -#define CL_TARGET_OPENCL_VERSION 220 +#define CL_TARGET_OPENCL_VERSION 300 #include <CL/cl.h> #include "pyopencl_ext.h" @@ -91,7 +91,9 @@ #define PYOPENCL_CL_VERSION PYOPENCL_PRETEND_CL_VERSION #else -#if defined(CL_VERSION_2_2) +#if defined(CL_VERSION_3_0) +#define PYOPENCL_CL_VERSION 0x3000 +#elif defined(CL_VERSION_2_2) #define PYOPENCL_CL_VERSION 0x2020 #elif defined(CL_VERSION_2_1) #define PYOPENCL_CL_VERSION 0x2010 -- GitLab