Re: [QGIS-Developer] OpenCL and macOS

2018-08-10 Thread Tom Elwertowski
For macOS, copying cl2.hpp from https://github.com/KhronosGroup/OpenCL-CLHPP/releases to /usr/local/include/CL works. Setting USE_OPENCL=OFF also works to disable OpenCL. One or the other is necessary or macOS will try the use the v1.2 C headers provided by Apple and pointed to by

Re: [QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Alessandro Pasotti
On Thu, Aug 9, 2018 at 5:05 PM, Tom Elwertowski wrote: > The directory found by CMake > (/System/Library/Frameworks/OpenCL.framework/Headers/) > contains only .h files. > > The khronos site mentioned by Denis offers cl.hpp for v1 and cl2.hpp for > v2. qgsopenclutils.h includes cl2.hpp. > >

Re: [QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Tom Elwertowski
The directory found by CMake (/System/Library/Frameworks/OpenCL.framework/Headers/) contains only .h files. The khronos site mentioned by Denis offers cl.hpp for v1 and cl2.hpp for v2. qgsopenclutils.h includes cl2.hpp. Should I download and try cl.hpp on my mac? If it compiles, how can I

Re: [QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Denis Rouzaud
I would just make it disable by default on mac for the moment. Le jeu. 9 août 2018 à 16:12, Denis Rouzaud a écrit : > I think the issue is that there is no header installed on mac > https://stackoverflow.com/a/23079478/1548052 > > Le jeu. 9 août 2018 à 16:06, Alessandro Pasotti a > écrit : >

Re: [QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Denis Rouzaud
I think the issue is that there is no header installed on mac https://stackoverflow.com/a/23079478/1548052 Le jeu. 9 août 2018 à 16:06, Alessandro Pasotti a écrit : > On Thu, Aug 9, 2018 at 3:54 PM, Tom Elwertowski > wrote: > >> Hi all, >> >> A recent change added OpenCL. Compilation fails on

Re: [QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Alessandro Pasotti
On Thu, Aug 9, 2018 at 3:54 PM, Tom Elwertowski wrote: > Hi all, > > A recent change added OpenCL. Compilation fails on macOS because Apple > provides v1.2 (macOS 10.13) while QGIS seems to require v2. That's wierd: 1.1 is what should be required can you file a ticket and provide full logs?

[QGIS-Developer] OpenCL and macOS

2018-08-09 Thread Tom Elwertowski
Hi all, A recent change added OpenCL. Compilation fails on macOS because Apple provides v1.2 (macOS 10.13) while QGIS seems to require v2. Adding a version to FIND_PACKAGE will fix the macOS compile and not use OpenCL. Apple has deprecated OpenCL in favor of its own Metal technology. OpenCL