<?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: mkl_somatadd does nothing in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-somatadd-does-nothing/m-p/1682653#M37068</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Were there any errors captured by oneMKL error handler?&lt;/P&gt;
&lt;P&gt;It might be caused by the wrong setting of the first three parameters. I tried&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    mkl_somatadd(
        'R',
        'N',
        'N',
        2, 2,
        1.0, A, 2,
        1.0, B, 2,
        C, 2
    );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;and got C={2, 4, 6, 8}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Fengrui&lt;/P&gt;</description>
    <pubDate>Mon, 14 Apr 2025 04:33:38 GMT</pubDate>
    <dc:creator>Fengrui</dc:creator>
    <dc:date>2025-04-14T04:33:38Z</dc:date>
    <item>
      <title>mkl_somatadd does nothing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-somatadd-does-nothing/m-p/1682321#M37062</link>
      <description>&lt;P&gt;Perhaps I am not understanding correctly how it should be used, but &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2025-1/mkl-omatadd.html" target="_self"&gt;mkl_?omatadd&lt;/A&gt; is not working for me.&lt;/P&gt;&lt;P&gt;I have tried with this test:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    auto A = new float[4] {1,2,3,4};
    auto B = new float[4] {1,2,3,4};
    auto C = new float[4] {-1,-1,-1,-1};
    auto E = new float[4] {2,4,6,8};

    mkl_somatadd(
        CblasRowMajor,
        CblasNoTrans,
        CblasNoTrans,
        2, 2,
        1.0, A, 2,
        1.0, B, 2,
        C, 2
    );
    ASSERT_THAT(
        std::vector&amp;lt;float&amp;gt;(A, A+2*2),
        testing::Pointwise(testing::FloatEq(), std::vector&amp;lt;float&amp;gt;(E, E+4))
    );&lt;/LI-CODE&gt;&lt;P&gt;The C&amp;nbsp; matrix is not modified at all. After going through mkl_somatadd, C is still {-1, -1, -1, -1}&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 10:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-somatadd-does-nothing/m-p/1682321#M37062</guid>
      <dc:creator>ddavobsc</dc:creator>
      <dc:date>2025-04-11T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_somatadd does nothing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-somatadd-does-nothing/m-p/1682653#M37068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Were there any errors captured by oneMKL error handler?&lt;/P&gt;
&lt;P&gt;It might be caused by the wrong setting of the first three parameters. I tried&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    mkl_somatadd(
        'R',
        'N',
        'N',
        2, 2,
        1.0, A, 2,
        1.0, B, 2,
        C, 2
    );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;and got C={2, 4, 6, 8}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Fengrui&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 04:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-somatadd-does-nothing/m-p/1682653#M37068</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-04-14T04:33:38Z</dc:date>
    </item>
  </channel>
</rss>

