<?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 You probably need float * in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Adding-vectors-with-MIC/m-p/940390#M16952</link>
    <description>&lt;P&gt;You probably need float * restrict a, float * restrict b, float *restrict r&amp;nbsp;&amp;nbsp; (or one of the ivdep pragmas) to get auto-vectorization.&amp;nbsp; Alignment would help if you make all the OpenMP chunks a multiple of 32.&lt;/P&gt;
&lt;P&gt;A single offloaded vector operation like this would spend a majority of the time on data transfer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2013 03:08:58 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2013-07-03T03:08:58Z</dc:date>
    <item>
      <title>Adding vectors with MIC</title>
      <link>https://community.intel.com/t5/Software-Archive/Adding-vectors-with-MIC/m-p/940389#M16951</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is the following code sample for adding vectors correct? Can I make it even faster using vectorized operations?&lt;/P&gt;
&lt;P&gt;void vectorAdd(float*a, float*b, float* r,int size)&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; #pragma offload target(mic) in(a:length(size)) in(b:length(size)) inout(r:length(size))&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#pragmaopenmp parallel for shared(a,b,r) private(i)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;for(inti=0; i&amp;lt;size; ++i)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; r&lt;I&gt; = a&lt;I&gt;+b&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 23:11:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Adding-vectors-with-MIC/m-p/940389#M16951</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-02T23:11:24Z</dc:date>
    </item>
    <item>
      <title>You probably need float *</title>
      <link>https://community.intel.com/t5/Software-Archive/Adding-vectors-with-MIC/m-p/940390#M16952</link>
      <description>&lt;P&gt;You probably need float * restrict a, float * restrict b, float *restrict r&amp;nbsp;&amp;nbsp; (or one of the ivdep pragmas) to get auto-vectorization.&amp;nbsp; Alignment would help if you make all the OpenMP chunks a multiple of 32.&lt;/P&gt;
&lt;P&gt;A single offloaded vector operation like this would spend a majority of the time on data transfer.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 03:08:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Adding-vectors-with-MIC/m-p/940390#M16952</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-07-03T03:08:58Z</dc:date>
    </item>
  </channel>
</rss>

