<?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:Link issue for parallel oneMKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1241901#M30596</link>
    <description>&lt;P&gt;Dear Laurent Plagne, &lt;/P&gt;&lt;P&gt;Intel oneAPI 2021.1 was officially released in Dec 8th. Have you tried it? And let us know if the link issue is still exist. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruqiu&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Dec 2020 05:51:27 GMT</pubDate>
    <dc:creator>Ruqiu_C_Intel</dc:creator>
    <dc:date>2020-12-30T05:51:27Z</dc:date>
    <item>
      <title>Link issue for parallel oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1202391#M30051</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am able to compile the joined snippet with the sequential version of oneMKL&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;dpcpp -O3 -fsycl -std=c++17 -DMKL_ILP64 -g -DNDEBUG -lOpenCL -lsycl -lmkl_sycl -lmkl_core -lmkl_sequential -lmkl_intel_lp64 ../src/portable_main.cpp&lt;/LI-CODE&gt;
&lt;P&gt;but it fails when I try to use the parallel version. I tried to follow&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-mkl-for-dpcpp/top.html#top_GUID-743B93DD-EF64-40E1-A597-C156522DB4AC" target="_self"&gt;this&lt;/A&gt;&amp;nbsp; for the link options;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;dpcpp  -lmkl_sycl -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -lsycl -lOpenCL -ltbb -lpthread -ldl -lm ../src/portable_main.cpp&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which results in numerous undefined references :&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;/usr/bin/ld : /opt/intel/oneapi/mkl/2021.1-beta08/lib/intel64/libmkl_tbb_thread.so : référence indéfinie vers « tbb::detail::r1::wait_bounded_queue_monitor(tbb::detail::r1::concurrent_monitor*, unsigned long, long, tbb::detail::d1::delegate_base&amp;amp;) »
/usr/bin/ld : /opt/intel/oneapi/mkl/2021.1-beta08/lib/intel64/libmkl_tbb_thread.so : référence indéfinie vers « tbb::detail::r1::execute_and_wait(tbb::detail::d1::task&amp;amp;, tbb::detail::d1::task_group_context&amp;amp;, tbb::detail::d1::wait_context&amp;amp;, tbb::detail::d1::task_group_context&amp;amp;) »
/usr/bin/ld : /opt/intel/oneapi/mkl/2021.1-beta08/lib/intel64/libmkl_tbb_thread.so : référence indéfinie vers « tbb::detail::r1::cache_aligned_deallocate(void*) »
/usr/bin/ld : /opt/intel/oneapi/mkl/2021.1-beta08/lib/intel64/libmkl_tbb_thread.so : référence indéfinie vers « tbb::detail::r1::terminate(tbb::detail::d1::task_arena_base&amp;amp;) »
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the file portable_main.cpp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;fstream&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;CL/sycl.hpp&amp;gt;
#include &amp;lt;chrono&amp;gt;
#include &amp;lt;cmath&amp;gt;
#include &amp;lt;cstring&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;random&amp;gt;
#include &amp;lt;fstream&amp;gt;
#include &amp;lt;chrono&amp;gt;
#include "mkl_sycl.hpp"
#include "dpc_common.hpp"


using namespace cl::sycl;
using namespace std;

constexpr size_t NITER=100; //amortize device/host communication
using Scalar=float;

template &amp;lt;class T&amp;gt;
void bench_axpy(size_t N){

  std::vector&amp;lt;T&amp;gt; a(N,1);
  std::vector&amp;lt;T&amp;gt; b(N,2);
  gpu_selector device_selector;
  queue q(device_selector, dpc_common::exception_handler);
  
  auto start=std::chrono::high_resolution_clock::now();
  {  // Begin buffer scope
    buffer buf_a(&amp;amp;a[0], range(N));// Create buffers using DPC++ class buffer
    buffer buf_b(&amp;amp;b[0], range(N));

    const T alpha=0.5;
    try{
        for (size_t iter=0; iter&amp;lt;NITER; iter++) {
            mkl::blas::axpy(q, N, alpha, buf_a, 1, buf_b, 1);
        }
    }
    catch(cl::sycl::exception const&amp;amp; e) {
        std::cout &amp;lt;&amp;lt; "\t\tCaught synchronous SYCL exception during AXPY:\n"
          &amp;lt;&amp;lt; e.what() &amp;lt;&amp;lt; std::endl;
    }
  }
  auto end = std::chrono::high_resolution_clock::now();
  std::chrono::duration&amp;lt;double&amp;gt; elapsed_seconds = end-start;
  double time = elapsed_seconds.count();
  double GBs=double(3*N)*sizeof(T)*NITER/(time*1.e9);//2R+1W
  std::cout &amp;lt;&amp;lt;"GBs="&amp;lt;&amp;lt;GBs&amp;lt;&amp;lt;std::endl; 
}


int main(int argc, char* argv[]) {

  bench_axpy&amp;lt;float&amp;gt;(2&amp;lt;&amp;lt;27);

  return 0;
}
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:03:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1202391#M30051</guid>
      <dc:creator>LaurentPlagne</dc:creator>
      <dc:date>2020-08-21T09:03:27Z</dc:date>
    </item>
    <item>
      <title>Re:Link issue for parallel oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1203409#M30052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us!&lt;/P&gt;&lt;P&gt;Since your issue is related to oneMKL, we are moving this query to the Intel® oneAPI Math Kernel Library &amp;amp; Intel® Math Kernel Library forum for a faster response.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:06:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1203409#M30052</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-08-24T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Link issue for parallel oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1204777#M30053</link>
      <description>Do you have a suggestion for this link issue ?</description>
      <pubDate>Thu, 27 Aug 2020 19:56:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1204777#M30053</guid>
      <dc:creator>LaurentPlagne</dc:creator>
      <dc:date>2020-08-27T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re:Link issue for parallel oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1241901#M30596</link>
      <description>&lt;P&gt;Dear Laurent Plagne, &lt;/P&gt;&lt;P&gt;Intel oneAPI 2021.1 was officially released in Dec 8th. Have you tried it? And let us know if the link issue is still exist. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruqiu&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2020 05:51:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1241901#M30596</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2020-12-30T05:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Link issue for parallel oneMKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1280489#M31308</link>
      <description>&lt;P&gt;&lt;SPAN class="sub_section_element_selectors"&gt;We will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Any further interaction in this thread will be considered community only.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:59:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-issue-for-parallel-oneMKL/m-p/1280489#M31308</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2021-05-11T08:59:17Z</dc:date>
    </item>
  </channel>
</rss>

