<?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 Error MSB3721 in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Error-MSB3721/m-p/1067009#M4340</link>
    <description>&lt;P&gt;I've got some problem with my __kernel. I tried use my custom types.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;typedef struct my_srtuct my_struct_t;
struct my_struct
{
/* some fields... */
};&lt;/PRE&gt;

&lt;P&gt;And tried to transfer same type from the host, so I did this:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void __kernel (__global my_struct_t *et)
{
/* program body */
}&lt;/PRE&gt;

&lt;P&gt;But compiler sad I've done smth wrong (error MSB3721 with errcode -1073741819). But if remove this .cl file from the solution &lt;SPAN style="font-size: 1em;"&gt;everything's Ok. Have you ever met this problem and what did you do to fix it?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;P.S.: I'm using VS 2015 Enterprise&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 07:32:25 GMT</pubDate>
    <dc:creator>Alexander_M_4</dc:creator>
    <dc:date>2016-10-27T07:32:25Z</dc:date>
    <item>
      <title>Error MSB3721</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Error-MSB3721/m-p/1067009#M4340</link>
      <description>&lt;P&gt;I've got some problem with my __kernel. I tried use my custom types.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;typedef struct my_srtuct my_struct_t;
struct my_struct
{
/* some fields... */
};&lt;/PRE&gt;

&lt;P&gt;And tried to transfer same type from the host, so I did this:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void __kernel (__global my_struct_t *et)
{
/* program body */
}&lt;/PRE&gt;

&lt;P&gt;But compiler sad I've done smth wrong (error MSB3721 with errcode -1073741819). But if remove this .cl file from the solution &lt;SPAN style="font-size: 1em;"&gt;everything's Ok. Have you ever met this problem and what did you do to fix it?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;P.S.: I'm using VS 2015 Enterprise&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 07:32:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Error-MSB3721/m-p/1067009#M4340</guid>
      <dc:creator>Alexander_M_4</dc:creator>
      <dc:date>2016-10-27T07:32:25Z</dc:date>
    </item>
    <item>
      <title>Hi Alexander,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Error-MSB3721/m-p/1067010#M4341</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I don't see&amp;nbsp;the OpenCL version of "&lt;CODE&gt;my_struct_tz"&lt;/CODE&gt; in your post&lt;CODE&gt;,&amp;nbsp;&lt;/CODE&gt;&lt;CODE&gt;apparently&amp;nbsp;it is defined on the host only, and &lt;/CODE&gt;OpenCL environment does not know about it.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;does &lt;/CODE&gt;"&lt;CODE&gt;my_struct_tz" contain pointers? :(&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Consider passing variables directly without encapsulation, (1) validate each arg. (2) avoid possible platform implementation issues.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;

&lt;P&gt;Tamer&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Error-MSB3721/m-p/1067010#M4341</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2016-10-27T14:37:00Z</dc:date>
    </item>
  </channel>
</rss>

