<?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: Re:Adding vectors using oneMKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289921#M31504</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/154738"&gt;@MRajesh_intel&lt;/a&gt;&amp;nbsp; Thank you. Yes the issue has been resolved now. It was the older version of oneapi that was getting stuck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 08:40:50 GMT</pubDate>
    <dc:creator>Nikhil_T</dc:creator>
    <dc:date>2021-06-15T08:40:50Z</dc:date>
    <item>
      <title>Adding vectors using oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1288208#M31476</link>
      <description>&lt;P&gt;I want to add 2 vectors using the following command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oneapi::mkl::vm::add ( general parameters )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The function signature says that it adds vec_a and vec_b and stores the result in vec_y.&lt;/P&gt;
&lt;P&gt;However, in my case, I want to perform vec_a = vec_a + vec_b, multiple times. I want to avoid the creation of a new vec_y and then transfer it to vec_a.&lt;/P&gt;
&lt;P&gt;Is it possible to call the function with the following signature:&lt;/P&gt;
&lt;P&gt;(vec_a , vec_b and vec_y are std::vectors)&lt;/P&gt;
&lt;P&gt;oneapi::mkl::vm::add(q, vec_size, vec_a.data(), vec_b.data(),&lt;STRONG&gt;vec_a&lt;/STRONG&gt;.data(), {})&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oneapi::mkl::vm::add(q, vec_size, vec_a.data(), vec_b.data(),&lt;STRONG&gt;vec_y&lt;/STRONG&gt;.data(), {})&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when trying to add those 2 vectors, I am getting the error as :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;E0304&lt;/STRONG&gt; no instance of overloaded function "oneapi::mkl::vm::add" matches the argument list&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 12:54:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1288208#M31476</guid>
      <dc:creator>Nikhil_T</dc:creator>
      <dc:date>2021-06-09T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re:Adding vectors using oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1288450#M31482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting your query.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;I&gt;oneapi::mkl::vm::add(q, vec_size, vec_a.data(), vec_b.data(),vec_a.data(), {})&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We tried this scenario using CPU as the device and the results were correct. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;I&gt;Also, when trying to add those 2 vectors, I am getting the error  :&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please refer to the examples provided in /intel/oneapi/mkl/latest/examples/dpcpp/vml. In the directory you can refer to vadd.cpp or vadd_usm.cpp for reference.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please let us know if you have any issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:47:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1288450#M31482</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-06-09T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re:Adding vectors using oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289916#M31503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please update us on whether your issue has been resolved or not?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 08:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289916#M31503</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-06-15T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Adding vectors using oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289921#M31504</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/154738"&gt;@MRajesh_intel&lt;/a&gt;&amp;nbsp; Thank you. Yes the issue has been resolved now. It was the older version of oneapi that was getting stuck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 08:40:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289921#M31504</guid>
      <dc:creator>Nikhil_T</dc:creator>
      <dc:date>2021-06-15T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re:Adding vectors using oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289991#M31518</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Adding-vectors-using-oneMKL/m-p/1289991#M31518</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-06-15T12:20:28Z</dc:date>
    </item>
  </channel>
</rss>

