<?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 compiler generating mad instruction in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768476#M125</link>
    <description>I have a compute instensive kernel performing lots of multiply and adds.&lt;BR /&gt;Am using opencl mad() function and float16 for the compiler to generate avx mad instruction.&lt;BR /&gt;But when I see the ASM dump from intel offline compiler, it shows mul and add instructions on YMM registers but no mad at all.&lt;BR /&gt;&lt;BR /&gt;dump:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..................&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmulps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM3, YMMWORD PTR [R15 + R10 + 32864]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vaddps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM2, YMM4, YMM2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vunpckhps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM0, YMM0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vpermilps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM4, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vperm2f128&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM4, YMM0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vmulps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM5, YMM4, YMMWORD PTR [R15 + R10 + 32928]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vaddps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM2, YMM5, YMM2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vshufps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM5, YMM0, YMM0, 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .................&lt;BR /&gt;&lt;BR /&gt;even tried cl-mad-enable (which was default) while building , but no change.&lt;BR /&gt;Am I missing something here?!</description>
    <pubDate>Mon, 13 Aug 2012 10:27:24 GMT</pubDate>
    <dc:creator>krishnaraj</dc:creator>
    <dc:date>2012-08-13T10:27:24Z</dc:date>
    <item>
      <title>OpenCL compiler generating mad instruction</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768476#M125</link>
      <description>I have a compute instensive kernel performing lots of multiply and adds.&lt;BR /&gt;Am using opencl mad() function and float16 for the compiler to generate avx mad instruction.&lt;BR /&gt;But when I see the ASM dump from intel offline compiler, it shows mul and add instructions on YMM registers but no mad at all.&lt;BR /&gt;&lt;BR /&gt;dump:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..................&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmulps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM3, YMMWORD PTR [R15 + R10 + 32864]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vaddps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM2, YMM4, YMM2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vunpckhps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM0, YMM0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vpermilps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM4, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vperm2f128&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM4, YMM4, YMM0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vmulps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM5, YMM4, YMMWORD PTR [R15 + R10 + 32928]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vaddps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM2, YMM5, YMM2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vshufps&amp;nbsp;&amp;nbsp; &amp;nbsp;YMM5, YMM0, YMM0, 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .................&lt;BR /&gt;&lt;BR /&gt;even tried cl-mad-enable (which was default) while building , but no change.&lt;BR /&gt;Am I missing something here?!</description>
      <pubDate>Mon, 13 Aug 2012 10:27:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768476#M125</guid>
      <dc:creator>krishnaraj</dc:creator>
      <dc:date>2012-08-13T10:27:24Z</dc:date>
    </item>
    <item>
      <title>OpenCL compiler generating mad instruction</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768477#M126</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;current AVX implementation doesn't have a mad instruction. This guy will be introduced with AVX2.&lt;BR /&gt;&lt;BR /&gt;Alex</description>
      <pubDate>Mon, 13 Aug 2012 13:45:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768477#M126</guid>
      <dc:creator>Alexander_Heinecke</dc:creator>
      <dc:date>2012-08-13T13:45:02Z</dc:date>
    </item>
    <item>
      <title>OpenCL compiler generating mad instruction</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768478#M127</link>
      <description>Thanks for that. I saw FMA intrinsics on some intel page and didn't notice that it belonged to AVX2.&lt;BR /&gt;Hope its coming soon.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2012 11:44:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compiler-generating-mad-instruction/m-p/768478#M127</guid>
      <dc:creator>krishnaraj</dc:creator>
      <dc:date>2012-08-27T11:44:34Z</dc:date>
    </item>
  </channel>
</rss>

