<?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 Help! BLAS problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870530#M8437</link>
    <description>Hi, im Jack.&lt;BR /&gt;&lt;BR /&gt;Im trying to convert to the MKL in my some source. &lt;BR /&gt;The problem is the difference between the output datas.&lt;BR /&gt;&lt;BR /&gt;The original code is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt; for(iz=0; iz&lt;NZ&gt;&lt;/NZ&gt; t[ix][iz] = a1*t1[ix][iz] + a2*t2[ix][iz];&lt;BR /&gt;&lt;BR /&gt;Like this. and converting to MKL(BLAS) is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt;{&lt;BR /&gt; cblas_sscal(nz, a1, t1[ix], 1);&lt;BR /&gt; cblas_scopy(nz, t1[ix], 1, t[ix], 1);&lt;BR /&gt; cblas_saxpy(nz, a2, t2[ix], 1, t[ix], 1);&lt;BR /&gt;}&lt;BR /&gt;t, t1, t2 Array are varible of float type.The Output data is a little bit wrong.&lt;BR /&gt;But I need accuracy data becauseit isrelated withmy work.&lt;BR /&gt;I don't know where is wrong. Did I miss something to do ?&lt;BR /&gt;Please help me.</description>
    <pubDate>Tue, 15 Sep 2009 11:04:00 GMT</pubDate>
    <dc:creator>galbimen</dc:creator>
    <dc:date>2009-09-15T11:04:00Z</dc:date>
    <item>
      <title>Help! BLAS problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870530#M8437</link>
      <description>Hi, im Jack.&lt;BR /&gt;&lt;BR /&gt;Im trying to convert to the MKL in my some source. &lt;BR /&gt;The problem is the difference between the output datas.&lt;BR /&gt;&lt;BR /&gt;The original code is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt; for(iz=0; iz&lt;NZ&gt;&lt;/NZ&gt; t[ix][iz] = a1*t1[ix][iz] + a2*t2[ix][iz];&lt;BR /&gt;&lt;BR /&gt;Like this. and converting to MKL(BLAS) is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt;{&lt;BR /&gt; cblas_sscal(nz, a1, t1[ix], 1);&lt;BR /&gt; cblas_scopy(nz, t1[ix], 1, t[ix], 1);&lt;BR /&gt; cblas_saxpy(nz, a2, t2[ix], 1, t[ix], 1);&lt;BR /&gt;}&lt;BR /&gt;t, t1, t2 Array are varible of float type.The Output data is a little bit wrong.&lt;BR /&gt;But I need accuracy data becauseit isrelated withmy work.&lt;BR /&gt;I don't know where is wrong. Did I miss something to do ?&lt;BR /&gt;Please help me.</description>
      <pubDate>Tue, 15 Sep 2009 11:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870530#M8437</guid>
      <dc:creator>galbimen</dc:creator>
      <dc:date>2009-09-15T11:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help! BLAS problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870531#M8438</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
If you require the effect of (double)a1*t1[ix][iz] + (double)a2*t[ix][iz] (K&amp;amp;R style evaluation, still default 2 decades later, for many C compilers), you are better off with the C code. If you want good performance, you should get the same numerical result, with much better performance than cblas, by compiling your C code with a vectorizing compiler, without the implicit promotion to double.&lt;BR /&gt;I find your style misleading, particularly without the data definitions.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Sep 2009 14:04:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870531#M8438</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-15T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help! BLAS problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870532#M8439</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;If you require the effect of (double)a1*t1[ix][iz] + (double)a2*t[ix][iz] (K&amp;amp;R style evaluation, still default 2 decades later, for many C compilers), you are better off with the C code. If you want good performance, you should get the same numerical result, with much better performance than cblas, by compiling your C code with a vectorizing compiler, without the implicit promotion to double.&lt;BR /&gt;I find your style misleading, particularly without the data definitions.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thank you abt the advise.&lt;BR /&gt;Your saying is all correct. I want better performance than before.&lt;BR /&gt;But vectorizing or parallelizing things are already being tried by another team member.&lt;BR /&gt;My target is only converting to MKL. that's why i've been trying to do with MKL.&lt;BR /&gt;&lt;BR /&gt;Now i wonder if cblas_saxpy function is workedby 2 dimentional array or not.&lt;BR /&gt;like :&lt;BR /&gt;&lt;BR /&gt;t[ix][iz] += (float)a1*t1[ix][iz];&lt;BR /&gt;=&amp;gt; cblas_saxpy(nz, a1, t1[ix] ,1 , t[ix] , 1);&lt;BR /&gt;&lt;BR /&gt;if i convert like this, i can't get same numerical results. is it impassible?</description>
      <pubDate>Tue, 15 Sep 2009 14:50:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870532#M8439</guid>
      <dc:creator>galbimen</dc:creator>
      <dc:date>2009-09-15T14:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help! BLAS problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870533#M8440</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/443067"&gt;galbimen&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi, im Jack.&lt;BR /&gt;&lt;BR /&gt;Im trying to convert to the MKL in my some source. &lt;BR /&gt;The problem is the difference between the output datas.&lt;BR /&gt;&lt;BR /&gt;The original code is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt; for(iz=0; iz&lt;NZ&gt;&lt;/NZ&gt; t[ix][iz] = a1*t1[ix][iz] + a2*t2[ix][iz];&lt;BR /&gt;&lt;BR /&gt;Like this. and converting to MKL(BLAS) is :&lt;BR /&gt;&lt;BR /&gt;for(ix=0; ix&lt;NX&gt;&lt;/NX&gt;{&lt;BR /&gt; cblas_sscal(nz, a1, t1[ix], 1);&lt;BR /&gt; cblas_scopy(nz, t1[ix], 1, t[ix], 1);&lt;BR /&gt; cblas_saxpy(nz, a2, t2[ix], 1, t[ix], 1);&lt;BR /&gt;}&lt;BR /&gt;t, t1, t2 Array are varible of float type.The Output data is a little bit wrong.&lt;BR /&gt;But I need accuracy data becauseit isrelated withmy work.&lt;BR /&gt;I don't know where is wrong. Did I miss something to do ?&lt;BR /&gt;Please help me.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;Galbimen, &lt;BR /&gt;&lt;STRONG&gt;The Output data is a little bit wrong.&lt;BR /&gt;&lt;/STRONG&gt;What is the size of this difference?&lt;BR /&gt;What is the input data?&lt;BR /&gt;Can you get us the test case for the investigating the problem?&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2009 05:09:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-BLAS-problem/m-p/870533#M8440</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-21T05:09:02Z</dc:date>
    </item>
  </channel>
</rss>

