From 186ed5ef9c7f37e94218ddd3c436968e8d882dac Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 17 Dec 2012 23:34:29 -0500 Subject: [PATCH] Remove "AMD double" support from reduction. --- pyopencl/reduction.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pyopencl/reduction.py b/pyopencl/reduction.py index c0f6b6d3..c2f12cea 100644 --- a/pyopencl/reduction.py +++ b/pyopencl/reduction.py @@ -51,9 +51,6 @@ KERNEL = """//CL// % if double_support: #pragma OPENCL EXTENSION cl_khr_fp64: enable #define PYOPENCL_DEFINE_CDOUBLE - % elif amd_double_support: - #pragma OPENCL EXTENSION cl_amd_fp64: enable - #define PYOPENCL_DEFINE_CDOUBLE % endif #include <pyopencl-complex.h> @@ -195,7 +192,7 @@ def _get_reduction_source( from mako.template import Template from pytools import all - from pyopencl.characterize import has_double_support, has_amd_double_support + from pyopencl.characterize import has_double_support src = str(Template(KERNEL).render( out_type=out_type, arguments=", ".join(arg.declarator() for arg in parsed_args), @@ -206,10 +203,7 @@ def _get_reduction_source( map_expr=map_expr, name=name, preamble=preamble, - double_support=all( - has_double_support(dev) for dev in devices), - amd_double_support=all( - has_amd_double_support(dev) for dev in devices) + double_support=all(has_double_support(dev) for dev in devices), )) from pytools import Record -- GitLab