[QGIS-Developer] OpenCL and macOS

Tom Elwertowski telwertowski at comcast.net
Thu Aug 9 08:05:01 PDT 2018


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 
test running it.

Tom


On 8/9/18 10:12 AM, Denis Rouzaud wrote:
> 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 <apasotti at gmail.com 
> <mailto:apasotti at gmail.com>> a écrit :
> 
>     On Thu, Aug 9, 2018 at 3:54 PM, Tom Elwertowski
>     <telwertowski at comcast.net <mailto:telwertowski at comcast.net>> 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?
> 
>         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 will remain for macOS 10.14 (Mojave, fall
>         2018) but may be removed after fall 2019.
> 
>         For the future, either OpenCL must remain an optional QGIS
>         feature in order to support macOS or the API needs to be
>         abstracted so that macOS can use Metal while other OSs use OpenCL.
> 
> 
> 
>     OpenCL is an optional feature and there is no plan to change that.
> 
> 
> 
>         Tom
>         LinkedIn: https://www.linkedin.com/in/thomas-elwertowski-a0886032
>         _______________________________________________
>         QGIS-Developer mailing list
>         QGIS-Developer at lists.osgeo.org
>         <mailto:QGIS-Developer at lists.osgeo.org>
>         List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>         Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 
> 
>     -- 
>     Alessandro Pasotti
>     w3: www.itopen.it <http://www.itopen.it>
>     _______________________________________________
>     QGIS-Developer mailing list
>     QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> -- 
> 
> Denis Rouzaud
> denis at opengis.ch <mailto:denis at opengis.ch>
> +41 76 370 21 22
> 
> 


More information about the QGIS-Developer mailing list