<?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 Link Issue with mkl_scalapack in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114942#M24590</link>
    <description>&lt;P&gt;&lt;STRONG&gt;my&amp;nbsp;code(test.cpp) is this:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;#include &amp;lt;vector&amp;gt;&lt;BR /&gt;
	#include "mkl_scalapack.h"&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;void main()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int N = 1000;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;std::vector&amp;lt;int&amp;gt; key(N);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;std::vector&amp;lt;double&amp;gt; value(N);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; N; i++) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;key&lt;I&gt; = i+1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;value&lt;I&gt; = i+1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int info;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;char id = 'I';&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;dlasrt2(&amp;amp;id,&amp;amp;N,&amp;amp;value[0],&amp;amp;key[0],&amp;amp;info);&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;my build option is this(on&amp;nbsp;OS X 10.11.3 ,mpi version &lt;/STRONG&gt;/opt/intel/compilers_and_libraries_2016.2.146/mac/mkl/lib&lt;STRONG&gt;):&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;$icpc -mkl test.cpp -o test&lt;BR /&gt;
	Undefined symbols for architecture x86_64:&lt;BR /&gt;
	&amp;nbsp; "_dlasrt2", referenced from:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; _main in icpcHc4PnE.o&lt;BR /&gt;
	ld: symbol(s) not found for architecture x86_64&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;my question:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;what's the correct option to build this file?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 21:40:36 GMT</pubDate>
    <dc:creator>yongbei_ma_</dc:creator>
    <dc:date>2016-10-14T21:40:36Z</dc:date>
    <item>
      <title>Link Issue with mkl_scalapack</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114942#M24590</link>
      <description>&lt;P&gt;&lt;STRONG&gt;my&amp;nbsp;code(test.cpp) is this:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;#include &amp;lt;vector&amp;gt;&lt;BR /&gt;
	#include "mkl_scalapack.h"&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;void main()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int N = 1000;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;std::vector&amp;lt;int&amp;gt; key(N);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;std::vector&amp;lt;double&amp;gt; value(N);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; N; i++) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;key&lt;I&gt; = i+1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;value&lt;I&gt; = i+1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int info;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;char id = 'I';&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;dlasrt2(&amp;amp;id,&amp;amp;N,&amp;amp;value[0],&amp;amp;key[0],&amp;amp;info);&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;my build option is this(on&amp;nbsp;OS X 10.11.3 ,mpi version &lt;/STRONG&gt;/opt/intel/compilers_and_libraries_2016.2.146/mac/mkl/lib&lt;STRONG&gt;):&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;$icpc -mkl test.cpp -o test&lt;BR /&gt;
	Undefined symbols for architecture x86_64:&lt;BR /&gt;
	&amp;nbsp; "_dlasrt2", referenced from:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; _main in icpcHc4PnE.o&lt;BR /&gt;
	ld: symbol(s) not found for architecture x86_64&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;my question:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;what's the correct option to build this file?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:40:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114942#M24590</guid>
      <dc:creator>yongbei_ma_</dc:creator>
      <dc:date>2016-10-14T21:40:36Z</dc:date>
    </item>
    <item>
      <title>pls try -mkl:cluster.   -mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114943#M24591</link>
      <description>&lt;P&gt;pls try &lt;STRONG&gt;-mkl&lt;/STRONG&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.3333px;"&gt;&lt;STRONG&gt;:cluster&lt;/STRONG&gt;. &amp;nbsp; -mkl option, by default links with SMP libraries.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 14:44:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114943#M24591</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-10-15T14:44:46Z</dc:date>
    </item>
    <item>
      <title>Now I have to use the LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114944#M24592</link>
      <description>&lt;P&gt;Now I have to use the LAPACK instead of SCALPACK, it works....&lt;/P&gt;

&lt;P&gt;int info = LAPACKE_dlasrt('I',N,&amp;amp;value[0]);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 16:27:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Link-Issue-with-mkl-scalapack/m-p/1114944#M24592</guid>
      <dc:creator>yongbei_ma_</dc:creator>
      <dc:date>2016-10-15T16:27:10Z</dc:date>
    </item>
  </channel>
</rss>

