Skip to content
Snippets Groups Projects
Commit 186ed5ef authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Remove "AMD double" support from reduction.

parent 0bd4a8c8
No related branches found
No related tags found
No related merge requests found
...@@ -51,9 +51,6 @@ KERNEL = """//CL// ...@@ -51,9 +51,6 @@ KERNEL = """//CL//
% if double_support: % if double_support:
#pragma OPENCL EXTENSION cl_khr_fp64: enable #pragma OPENCL EXTENSION cl_khr_fp64: enable
#define PYOPENCL_DEFINE_CDOUBLE #define PYOPENCL_DEFINE_CDOUBLE
% elif amd_double_support:
#pragma OPENCL EXTENSION cl_amd_fp64: enable
#define PYOPENCL_DEFINE_CDOUBLE
% endif % endif
#include <pyopencl-complex.h> #include <pyopencl-complex.h>
...@@ -195,7 +192,7 @@ def _get_reduction_source( ...@@ -195,7 +192,7 @@ def _get_reduction_source(
from mako.template import Template from mako.template import Template
from pytools import all 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( src = str(Template(KERNEL).render(
out_type=out_type, out_type=out_type,
arguments=", ".join(arg.declarator() for arg in parsed_args), arguments=", ".join(arg.declarator() for arg in parsed_args),
...@@ -206,10 +203,7 @@ def _get_reduction_source( ...@@ -206,10 +203,7 @@ def _get_reduction_source(
map_expr=map_expr, map_expr=map_expr,
name=name, name=name,
preamble=preamble, preamble=preamble,
double_support=all( double_support=all(has_double_support(dev) for dev in devices),
has_double_support(dev) for dev in devices),
amd_double_support=all(
has_amd_double_support(dev) for dev in devices)
)) ))
from pytools import Record from pytools import Record
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment