<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 9, 2018 at 5:05 PM, Tom Elwertowski <span dir="ltr"><<a href="mailto:telwertowski@comcast.net" target="_blank">telwertowski@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The directory found by CMake (/System/Library/Frameworks/Op<wbr>enCL.framework/Headers/) contains only .h files.<br>
<br>
The khronos site mentioned by Denis offers cl.hpp for v1 and cl2.hpp for v2. qgsopenclutils.h includes cl2.hpp.<br>
<br>
Should I download and try cl.hpp on my mac?</blockquote><div><br></div><div>Sorry but I don't know if that will work (I'm not a mac user), what I know is that you need cl2.hpp (note that this header supports 1.1 and 1.0) in order to build QGIS with opencl support and you also need the opencl library to link to.</div><div><br></div><div>Once you've built it, to actually run opencl stuff you need (one or more) other runtime library that is hardware (intel, AMD, NVidia etc.) and system dependent and it is dynamically loaded by opencl library. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> If it compiles, how can I test running it.<br></blockquote><div><br></div><div><br></div><div>There are tests in the tests folder that you can build and run, specifically: qgsninecellsfiltertest.cpp and qgsopenclutilstest.cpp</div><div><br></div><div>You can also open the QGIS options dialog and check under "Acceleration":  see <a href="https://user-images.githubusercontent.com/142164/43066104-08b6880e-8e64-11e8-8a46-103e368119e5.png">https://user-images.githubusercontent.com/142164/43066104-08b6880e-8e64-11e8-8a46-103e368119e5.png</a></div><div><br></div><div>As you can see in the picture OpenCL supported version of that particular library is 1.1</div><div><br></div><div><br></div><div>Let me know how it goes!</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Tom<span class="gmail-"><br>
<br>
<br>
On 8/9/18 10:12 AM, Denis Rouzaud wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
I think the issue is that there is no header installed on mac<br>
<a href="https://stackoverflow.com/a/23079478/1548052" rel="noreferrer" target="_blank">https://stackoverflow.com/a/23<wbr>079478/1548052</a><br>
<br></span><span class="gmail-">
Le jeu. 9 août 2018 à 16:06, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a> <mailto:<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>>> a écrit :<br>
<br>
    On Thu, Aug 9, 2018 at 3:54 PM, Tom Elwertowski<br></span><span class="gmail-">
    <<a href="mailto:telwertowski@comcast.net" target="_blank">telwertowski@comcast.net</a> <mailto:<a href="mailto:telwertowski@comcast.net" target="_blank">telwertowski@comcast.n<wbr>et</a>>> wrote:<br>
<br>
        Hi all,<br>
<br>
        A recent change added OpenCL. Compilation fails on macOS because<br>
        Apple provides v1.2 (macOS 10.13) while QGIS seems to require v2. <br>
<br>
<br>
    That's wierd: 1.1 is what should be required can you file a ticket<br>
    and provide full logs?<br>
<br>
        Adding a version to FIND_PACKAGE will fix the macOS compile and<br>
        not use OpenCL.<br>
<br>
        Apple has deprecated OpenCL in favor of its own Metal<br>
        technology. OpenCL will remain for macOS 10.14 (Mojave, fall<br>
        2018) but may be removed after fall 2019.<br>
<br>
        For the future, either OpenCL must remain an optional QGIS<br>
        feature in order to support macOS or the API needs to be<br>
        abstracted so that macOS can use Metal while other OSs use OpenCL.<br>
<br>
<br>
<br>
    OpenCL is an optional feature and there is no plan to change that.<br>
<br>
<br>
<br>
        Tom<br>
        LinkedIn: <a href="https://www.linkedin.com/in/thomas-elwertowski-a0886032" rel="noreferrer" target="_blank">https://www.linkedin.com/in/th<wbr>omas-elwertowski-a0886032</a><br>
        ______________________________<wbr>_________________<br>
        QGIS-Developer mailing list<br>
        <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br></span>
        <mailto:<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.o<wbr>sgeo.org</a>><span class="gmail-"><br>
        List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
        Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
<br>
<br>
<br>
<br>
    --     Alessandro Pasotti<br></span>
    w3: <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a> <<a href="http://www.itopen.it" rel="noreferrer" target="_blank">http://www.itopen.it</a>><br>
    ______________________________<wbr>_________________<br>
    QGIS-Developer mailing list<br>
    <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a> <mailto:<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.o<wbr>sgeo.org</a>><span class="gmail-"><br>
    List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
    Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
<br>
-- <br>
<br>
Denis Rouzaud<br>
</span><a href="mailto:denis@opengis.ch" target="_blank">denis@opengis.ch</a> <mailto:<a href="mailto:denis@opengis.ch" target="_blank">denis@opengis.ch</a>><span class="gmail-"><br>
+41 76 370 21 22<br>
<br>
<br>
</span></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>