<div dir="ltr"><div class="gmail_signature">On Wed, May 11, 2016 at 8:27 PM, Vedran Miletić <span dir="ltr">&lt;<a href="mailto:rivanvx@gmail.com" target="_blank">rivanvx@gmail.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">2016-05-11 18:41 GMT+02:00 Szilárd Páll &lt;<a href="mailto:pall.szilard@gmail.com">pall.szilard@gmail.com</a>&gt;:<br>
&gt; clEnqueueWaitForEvents has been changed to  clEnqueueBarrierWithWaitList in<br>
&gt; OpenCL 1.2, but we do have both cases handled:<br>
&gt; <a href="http://redmine.gromacs.org/projects/gromacs/repository/revisions/release-5-1/entry/src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl.cpp#L329" rel="noreferrer" target="_blank">http://redmine.gromacs.org/projects/gromacs/repository/revisions/release-5-1/entry/src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl.cpp#L329</a><br>
&gt;<br>
&gt; So AFAICT you could be using a header that&#39;s OpenCL 1.2, but the old<br>
&gt; libOpenCL.so from NVIDIA.<br>
<br>
</span>Indeed [1], and this affects all the users of Debian 8 that use the<br>
packaged CUDA.<br></blockquote><div><br></div><div>That seems to be a broken setup; the API needs to be compatible with the libraries in the repo, so they need to provide a library that&#39;s v1.1 (or perhaps even nvidia&#39;s own lib if </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Can I somehow force OpenCL 1.1 to be used, i.e. forcefully undefine<br>
CL_VERSION_1_2? I tried -U parameter but this does not work [2].<br></blockquote><div><br></div><div>As far as I know you can only do that in the code with #undef. We could manage internally our own CL_VERSION something like it&#39;s done with the PTX version in CUDA (gpu_utils/cuda_arch_utils.cuh) and somehow work around the Debian issue, but it would be good to know how widespread this is and whether perhaps there is a better user-side solution.</div><div><br></div><div><div><div class="gmail_signature">--<br>Szilárd</div></div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
Vedran<br>
<br>
[1] <a href="https://packages.debian.org/jessie/opencl-headers" rel="noreferrer" target="_blank">https://packages.debian.org/jessie/opencl-headers</a><br>
[2] <a href="https://stackoverflow.com/questions/1978155/how-to-undefine-a-define-at-commandline-using-gcc" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/1978155/how-to-undefine-a-define-at-commandline-using-gcc</a><br>
<div class=""><div class="h5"><br>
--<br>
Vedran Miletić<br>
<a href="http://vedranmileti.ch/" rel="noreferrer" target="_blank">http://vedranmileti.ch/</a><br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.</div></div></blockquote></div></div>