<?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 OpenCL callback function in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832181#M1302</link>
    <description>&lt;P&gt;void CL_CALLBACK myCallback( cl_event event,cl_int cmd_exec_status, void *user_data) &lt;BR /&gt;&lt;BR /&gt;is giving an error on compilation.&lt;BR /&gt;&lt;BR /&gt;Also, clSetEventCallback() statement is giving an error 'clSetEventCallback' identifier not found.&lt;BR /&gt;Does this mean that Intel SDK does not support callback functions?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2011 10:47:16 GMT</pubDate>
    <dc:creator>Shweta_Shree</dc:creator>
    <dc:date>2011-09-12T10:47:16Z</dc:date>
    <item>
      <title>OpenCL callback function</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832181#M1302</link>
      <description>&lt;P&gt;void CL_CALLBACK myCallback( cl_event event,cl_int cmd_exec_status, void *user_data) &lt;BR /&gt;&lt;BR /&gt;is giving an error on compilation.&lt;BR /&gt;&lt;BR /&gt;Also, clSetEventCallback() statement is giving an error 'clSetEventCallback' identifier not found.&lt;BR /&gt;Does this mean that Intel SDK does not support callback functions?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:47:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832181#M1302</guid>
      <dc:creator>Shweta_Shree</dc:creator>
      <dc:date>2011-09-12T10:47:16Z</dc:date>
    </item>
    <item>
      <title>OpenCL callback function</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832182#M1303</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Intel SDK does support callback functions.&lt;BR /&gt;&lt;BR /&gt;Can you provide more details on the problem?&lt;BR /&gt;&lt;BR /&gt;Which development environment are you using?&lt;BR /&gt;Problematic code sample?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny</description>
      <pubDate>Mon, 12 Sep 2011 13:32:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832182#M1303</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-09-12T13:32:49Z</dc:date>
    </item>
    <item>
      <title>OpenCL callback function</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832183#M1304</link>
      <description>Thank you Evgeny.&lt;BR /&gt;Sorry for the delayed reply.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Environment:&lt;/SPAN&gt;&lt;BR /&gt;OS: Windows&lt;BR /&gt;CPU: Intel Core 2 Duo&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Sample Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;#include&lt;STDIO.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;&lt;P&gt;#include&lt;STDLIB.H&gt;&lt;/STDLIB.H&gt;&lt;/P&gt;&lt;P&gt;#include "cl.h"&lt;/P&gt;&lt;P&gt;void CL_CALLBACK myCallback(cl_event evnt,cl_int cmd_sts,void *user_data);&lt;/P&gt;&lt;P&gt;int main(int argc, char** argv) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; /* Find platform and devices&lt;BR /&gt; Create Context, Command queue, program andkernel.&lt;BR /&gt; Set arguments to the kernel &lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;ret = clEnqueueNDRangeKernel(cqCommandQueue, ckKernel, 1, NULL, &amp;amp;global_item_size, &amp;amp;local_item_size, 0, NULL, &amp;amp;event1);&lt;/P&gt;&lt;P&gt;ret = clSetEventCallback(event1, CL_COMPLETE, &amp;amp;myCallback, NULL); &lt;/P&gt;&lt;P&gt;/* Read result from buffer&lt;BR /&gt; Release resources. &lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void myCallback(cl_event evnt,cl_int cmd_sts,void *user_data)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; /* Do something */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2011 10:23:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832183#M1304</guid>
      <dc:creator>Shweta_Shree</dc:creator>
      <dc:date>2011-09-15T10:23:49Z</dc:date>
    </item>
    <item>
      <title>OpenCL callback function</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832184#M1305</link>
      <description>The code looks fine.&lt;BR /&gt;&lt;BR /&gt;Please check location of the cl.h.&lt;BR /&gt;&lt;BR /&gt;Is it coming from Intel SDK?</description>
      <pubDate>Thu, 15 Sep 2011 13:01:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832184#M1305</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-09-15T13:01:51Z</dc:date>
    </item>
    <item>
      <title>OpenCL callback function</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832185#M1306</link>
      <description>Oh thanks!&lt;BR /&gt;&lt;BR /&gt;I just noticed that I had 2 cl.h files.&lt;BR /&gt;I did not check if they were different because i assumed, no matter what the .h files would be the same.&lt;BR /&gt;&lt;BR /&gt;Thanks once again.</description>
      <pubDate>Thu, 15 Sep 2011 13:16:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-callback-function/m-p/832185#M1306</guid>
      <dc:creator>IDZ_A_Intel</dc:creator>
      <dc:date>2011-09-15T13:16:22Z</dc:date>
    </item>
  </channel>
</rss>

