From 42fd119f4d7ce51e259d67b69091d127ef96a3df Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 17 Jul 2015 11:03:19 -0500 Subject: [PATCH] Add CL1.2 gate to fp64 enable --- pyopencl/bitonic_sort_templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyopencl/bitonic_sort_templates.py b/pyopencl/bitonic_sort_templates.py index 4aafa439..45f7288f 100644 --- a/pyopencl/bitonic_sort_templates.py +++ b/pyopencl/bitonic_sort_templates.py @@ -39,7 +39,9 @@ LOCAL_MEM_FACTOR = 1 defines = """//CL// % if dtype == "double": + #if __OPENCL_C_VERSION__ < 120 #pragma OPENCL EXTENSION cl_khr_fp64: enable + #endif % endif typedef ${dtype} data_t; -- GitLab