From b41558150a465c09128a46d985d1492c8e19c9b3 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 11 Oct 2018 15:47:55 -0500 Subject: [PATCH] Fix CommandQueue logic with iterable queue_properties --- src/wrap_cl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 843de9e4..0821bbab 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -1355,12 +1355,12 @@ namespace pyopencl } else { -#if PYOPENCL_CL_VERSION >= 0x2000 +#if PYOPENCL_CL_VERSION < 0x2000 throw error("CommandQueue", CL_INVALID_VALUE, "queue properties given as an iterable, " "which is only allowed when PyOpenCL was built " "against an OpenCL 2+ header"); - +#else if (hex_plat_version < 0x2000) { std::cerr << -- GitLab