<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic any difference between clEnqueueBarrierWithWaitList and clEnqueueMarkerWithWaitList? in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/any-difference-between-clEnqueueBarrierWithWaitList-and/m-p/1158273#M6239</link>
    <description>&lt;P&gt;anyone can help explain the difference about these 2 APIs in OPENCL1.2, clEnqueueMarkerWithWaitList() and clEnqueueBarrierWithWaitList()?&lt;BR /&gt;&lt;BR /&gt;test running is&amp;nbsp; on Intel(R) OpenCL 2.1 LINUX, and it seems they are totally the same in behvavior.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 01:19:54 GMT</pubDate>
    <dc:creator>dang__zhaiwei</dc:creator>
    <dc:date>2019-02-25T01:19:54Z</dc:date>
    <item>
      <title>any difference between clEnqueueBarrierWithWaitList and clEnqueueMarkerWithWaitList?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/any-difference-between-clEnqueueBarrierWithWaitList-and/m-p/1158273#M6239</link>
      <description>&lt;P&gt;anyone can help explain the difference about these 2 APIs in OPENCL1.2, clEnqueueMarkerWithWaitList() and clEnqueueBarrierWithWaitList()?&lt;BR /&gt;&lt;BR /&gt;test running is&amp;nbsp; on Intel(R) OpenCL 2.1 LINUX, and it seems they are totally the same in behvavior.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 01:19:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/any-difference-between-clEnqueueBarrierWithWaitList-and/m-p/1158273#M6239</guid>
      <dc:creator>dang__zhaiwei</dc:creator>
      <dc:date>2019-02-25T01:19:54Z</dc:date>
    </item>
    <item>
      <title>Yeah, the difference is very</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/any-difference-between-clEnqueueBarrierWithWaitList-and/m-p/1158274#M6240</link>
      <description>&lt;P&gt;Yeah, the difference is very subtle.&lt;/P&gt;&lt;P&gt;For reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/clEnqueueMarkerWithWaitList.html" target="_blank"&gt;https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/clEnqueueMarkerWithWaitList.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/clEnqueueBarrierWithWaitList.html" target="_blank"&gt;https://www.khronos.org/registry/OpenCL/sdk/2.0/docs/man/xhtml/clEnqueueBarrierWithWaitList.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In short, if a barrier and a wait list are used in an in-order command queue, there is no difference, since there is an implied dependency between commands in an in-order command queue.&lt;/P&gt;&lt;P&gt;There is a difference in an out-of-order command queue though.&lt;/P&gt;&lt;P&gt;In an out-of-order command queue, a marker can be used to indicate that some number of previously enqueued commands are complete, but it doesn't necessarily affect any subsequently enqueued commands.&amp;nbsp; In particular, a subsequently enqueued command may start before the marker completes, absent any other dependencies.&lt;/P&gt;&lt;P&gt;By contrast, a barrier both indicates that some number of previously enqueued commands are complete and&amp;nbsp;prevents any subsequently enqueued commands from starting until the barrier is complete.&amp;nbsp; One way to think about this is that there is an implied dependency between a barrier and subsequently enqueued commands.&amp;nbsp; This implied dependency does not exist for a marker.&lt;/P&gt;&lt;P&gt;Note that even with this distinction, there's no guarantee that an implementation will implement a barrier and a marker differently.&amp;nbsp; The marker allows additional opportunities for concurrent execution, but does not require it.&lt;/P&gt;&lt;P&gt;I hope this helps - please don't hesitate to ask follow-on questions.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 21:30:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/any-difference-between-clEnqueueBarrierWithWaitList-and/m-p/1158274#M6240</guid>
      <dc:creator>Ben_A_Intel</dc:creator>
      <dc:date>2019-02-26T21:30:42Z</dc:date>
    </item>
  </channel>
</rss>

