pyopencl/pyopencl — pull request #50 by gw0 (2014-06-15 12:46:50+00:00)
Title: Fix warning for `cl_khr_fp64` in OpenCL 1.2

On Debian 7 with OpenCL 1.2 (`amd-libopencl1` from backports) I got the following warning each time I tried to use a PyOpenCL *ReductionKernel*. Adding a correct `#ifdef` solves the problem, this is why I added it everywhere.

```
$ PYOPENCL_CTX=0 PYOPENCL_COMPILER_OUTPUT=1 ./test_cl_array.py
/.../venv/src/pyopencl/pyopencl/__init__.py:57: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on succeeded, but said:

"/tmp/OCLpZ9ajX.cl", line 6: warning: OpenCL extension is now part of core
#pragma OPENCL EXTENSION cl_khr_fp64: enable
^

warn(text, CompilerWarning)
/.../venv/src/pyopencl/pyopencl/__init__.py:57: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on succeeded, but said:

"/tmp/OCLTQ0J0B.cl", line 6: warning: OpenCL extension is now part of core
#pragma OPENCL EXTENSION cl_khr_fp64: enable
^

warn(text, CompilerWarning)
```

Related links:

-
-