<?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 clSetMemObjectDestructorCallback calls callback with invalid mem_obj in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetMemObjectDestructorCallback-calls-callback-with-invalid-mem/m-p/983060#M2600</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I wrote a little wrapper for clMemoryObjects in which I set a callback for buffer/memory destruction via clSetMemObjectDestructorCallback (actually it's the C++ wrapper equivalent).&lt;/P&gt;
&lt;P&gt;When the callback is called, however, and I want to query the cl_mem, which is passed to the callback by the API, I sometimes get an error code Of "-38" -&amp;gt; CL_INVALID_MEM_OBJECT. The application is basically single threaded, so I don't see, where the object should have been destroyed elswhere.&lt;/P&gt;
&lt;P&gt;I am also using other OpenCL platforms, in which the code workd properly, so I'm wondering where to look next for my bug.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Matthias&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Aug 2013 02:01:58 GMT</pubDate>
    <dc:creator>Matthias_H_4</dc:creator>
    <dc:date>2013-08-25T02:01:58Z</dc:date>
    <item>
      <title>clSetMemObjectDestructorCallback calls callback with invalid mem_obj</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetMemObjectDestructorCallback-calls-callback-with-invalid-mem/m-p/983060#M2600</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I wrote a little wrapper for clMemoryObjects in which I set a callback for buffer/memory destruction via clSetMemObjectDestructorCallback (actually it's the C++ wrapper equivalent).&lt;/P&gt;
&lt;P&gt;When the callback is called, however, and I want to query the cl_mem, which is passed to the callback by the API, I sometimes get an error code Of "-38" -&amp;gt; CL_INVALID_MEM_OBJECT. The application is basically single threaded, so I don't see, where the object should have been destroyed elswhere.&lt;/P&gt;
&lt;P&gt;I am also using other OpenCL platforms, in which the code workd properly, so I'm wondering where to look next for my bug.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Matthias&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2013 02:01:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetMemObjectDestructorCallback-calls-callback-with-invalid-mem/m-p/983060#M2600</guid>
      <dc:creator>Matthias_H_4</dc:creator>
      <dc:date>2013-08-25T02:01:58Z</dc:date>
    </item>
    <item>
      <title>Duplicate post.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clSetMemObjectDestructorCallback-calls-callback-with-invalid-mem/m-p/983061#M2601</link>
      <description>&lt;P&gt;Duplicate post.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 18:42:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clSetMemObjectDestructorCallback-calls-callback-with-invalid-mem/m-p/983061#M2601</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2013-08-27T18:42:50Z</dc:date>
    </item>
  </channel>
</rss>

