<?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 Re: How effective is MKL? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909765#M12040</link>
    <description>What is this Random() ? One would expect an optimized sin() to be intended for arguments mostly between -Pi and Pi. &lt;BR /&gt;It would not be surprising to see the sinf() in the Intel svml library perform better than MKL SVML on a variety of real problems. I would have to guess you may be using a native x87 sin() on a machine which runs it better than average, as computing a double sin() and casting it to float would be slow in many cases. The native x87 sin() might be relatively efficient at range reduction on your machine.&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Sep 2007 13:24:45 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2007-09-14T13:24:45Z</dc:date>
    <item>
      <title>How effective is MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909764#M12039</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I just have a quick testing with a function in VML library. You can see here:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;BR /&gt; float *fA =new float[VEC_LEN];&lt;BR /&gt; float *fB1=new float[VEC_LEN];&lt;BR /&gt; float *fB2=new float[VEC_LEN];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Randomize();&lt;BR /&gt;&lt;BR /&gt; for(int i=0;i&lt;VEC_LEN&gt; fA&lt;I&gt;=(float)(Random(-998));&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; struct time t1;&lt;BR /&gt; gettime(&amp;amp;t1);&lt;BR /&gt; for(int i=0;i&lt;VEC_LEN&gt; fB1&lt;I&gt;=(float)sin(fA&lt;I&gt;);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; struct time t2;&lt;BR /&gt; gettime(&amp;amp;t2);&lt;BR /&gt;&lt;BR /&gt; vsSin(VEC_LEN,fA,fB2);&lt;BR /&gt;&lt;BR /&gt; struct time t3;&lt;BR /&gt; gettime(&amp;amp;t3);&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/VEC_LEN&gt;&lt;/I&gt;&lt;/VEC_LEN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;In average, (t3-t2) = (t2-t1) x 3 (it means VML is slower). I use an array upto 2,000,000 elements. &lt;BR /&gt;&lt;BR /&gt;It's just a very simple test, but I don't see MKL is more effective (faster) than the standard library. Or didn't I use it effectively? Is it possible to optimize VML/MKL to improve the speed of running?&lt;BR /&gt;&lt;BR /&gt;I'd like to hear from you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2007 06:46:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909764#M12039</guid>
      <dc:creator>rockballad</dc:creator>
      <dc:date>2007-09-14T06:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How effective is MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909765#M12040</link>
      <description>What is this Random() ? One would expect an optimized sin() to be intended for arguments mostly between -Pi and Pi. &lt;BR /&gt;It would not be surprising to see the sinf() in the Intel svml library perform better than MKL SVML on a variety of real problems. I would have to guess you may be using a native x87 sin() on a machine which runs it better than average, as computing a double sin() and casting it to float would be slow in many cases. The native x87 sin() might be relatively efficient at range reduction on your machine.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2007 13:24:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909765#M12040</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-09-14T13:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How effective is MKL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909766#M12041</link>
      <description>Oh, it's the problem in using, not the library itself. The function Random(x) is to get a integer between 0 and x. When I set x a negative number, it returns a very big (random) number, sometimes negative. And as you said, I'm using an AMD Turion64, and maybe that made the bad result above. &lt;BR /&gt;&lt;BR /&gt;Thanks for your comment. &lt;BR /&gt;&lt;BR /&gt;Have a nice day!&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2007 01:52:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-effective-is-MKL/m-p/909766#M12041</guid>
      <dc:creator>rockballad</dc:creator>
      <dc:date>2007-09-17T01:52:54Z</dc:date>
    </item>
  </channel>
</rss>

