From 0b598cb558c94511c373dda77a118f00c08ddb5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= <inform@tiker.net>
Date: Fri, 15 Nov 2019 01:13:33 +0100
Subject: [PATCH] Remove CL version query for BITFIELD_CONSTANT_CLASSES

---
 pyopencl/__init__.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index 1fe13c3e..8660a77b 100644
--- a/pyopencl/__init__.py
+++ b/pyopencl/__init__.py
@@ -225,16 +225,8 @@ BITFIELD_CONSTANT_CLASSES = (
         _cl.mem_flags,
         _cl.map_flags,
         _cl.kernel_arg_type_qualifier,
-        )
-
-if get_cl_header_version() >= (1, 2):
-    BITFIELD_CONSTANT_CLASSES += (
         _cl.device_affinity_domain,
         _cl.mem_migration_flags,
-        )
-
-if get_cl_header_version() >= (2, 0):
-    BITFIELD_CONSTANT_CLASSES += (
         _cl.device_svm_capabilities,
         _cl.queue_properties,
         _cl.svm_mem_flags,
-- 
GitLab