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
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.
>
>
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
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 :
>
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
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?
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