<?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 undefined reference to `slasrt2' in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828184#M5312</link>
    <description>I have made a simple application to test the MKL and I used the function &lt;B&gt;slasrt&lt;/B&gt; and used the link line advisor and every thing worked fine without any problem.&lt;BR /&gt;Thats ok.&lt;BR /&gt;&lt;BR /&gt;The problem is: When I try to use &lt;B&gt;slasrt2&lt;/B&gt; he give me the ugly &lt;B&gt;undefined reference to `slasrt2' &lt;/B&gt;error.&lt;BR /&gt;&lt;BR /&gt;I use Qt and this is the command that Qt generate to link my app&lt;BR /&gt;&lt;BR /&gt;&lt;META name="qrichtext" content="1" /&gt;&lt;META http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;STYLE type="text/css"&gt;&amp;lt;!--
p, li { white-space: pre-wrap; }
--&amp;gt;&lt;/STYLE&gt;
&lt;P&gt;&lt;!--StartFragment--&gt;g++ -o MKLTest main.o -L/usr/lib -L/opt/intel/mkl/10.2.5.035/lib/32 -lmkl_scalapack_core /usr/lib/libmkl_solver.a -Wl,--start-group -lmkl_intel -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi -Wl,--end-group -liomp5 -lmpi -lQtCore -lpthread&lt;!--EndFragment--&gt;&lt;/P&gt;please note again that the app worked fine with &lt;B&gt;slasrt&lt;/B&gt; the problem only is with the &lt;B&gt;slasrt2&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 02 May 2010 23:16:28 GMT</pubDate>
    <dc:creator>universenavigator</dc:creator>
    <dc:date>2010-05-02T23:16:28Z</dc:date>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828184#M5312</link>
      <description>I have made a simple application to test the MKL and I used the function &lt;B&gt;slasrt&lt;/B&gt; and used the link line advisor and every thing worked fine without any problem.&lt;BR /&gt;Thats ok.&lt;BR /&gt;&lt;BR /&gt;The problem is: When I try to use &lt;B&gt;slasrt2&lt;/B&gt; he give me the ugly &lt;B&gt;undefined reference to `slasrt2' &lt;/B&gt;error.&lt;BR /&gt;&lt;BR /&gt;I use Qt and this is the command that Qt generate to link my app&lt;BR /&gt;&lt;BR /&gt;&lt;META name="qrichtext" content="1" /&gt;&lt;META http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;STYLE type="text/css"&gt;&amp;lt;!--
p, li { white-space: pre-wrap; }
--&amp;gt;&lt;/STYLE&gt;
&lt;P&gt;&lt;!--StartFragment--&gt;g++ -o MKLTest main.o -L/usr/lib -L/opt/intel/mkl/10.2.5.035/lib/32 -lmkl_scalapack_core /usr/lib/libmkl_solver.a -Wl,--start-group -lmkl_intel -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi -Wl,--end-group -liomp5 -lmpi -lQtCore -lpthread&lt;!--EndFragment--&gt;&lt;/P&gt;please note again that the app worked fine with &lt;B&gt;slasrt&lt;/B&gt; the problem only is with the &lt;B&gt;slasrt2&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 May 2010 23:16:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828184#M5312</guid>
      <dc:creator>universenavigator</dc:creator>
      <dc:date>2010-05-02T23:16:28Z</dc:date>
    </item>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828185#M5313</link>
      <description>Doesn't any one have answer to my question ?</description>
      <pubDate>Mon, 03 May 2010 17:38:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828185#M5313</guid>
      <dc:creator>universenavigator</dc:creator>
      <dc:date>2010-05-03T17:38:33Z</dc:date>
    </item>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828186#M5314</link>
      <description>Could you please try to call_SLASRT2 instead of SLASRT2.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 May 2010 08:47:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828186#M5314</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-05T08:47:35Z</dc:date>
    </item>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828187#M5315</link>
      <description>If I use call_SLASRT2 instead of SLASRT2 then the compiler generates following error message:&lt;BR /&gt;&lt;BR /&gt;Error 1  error #5192: Lead underscore not allowed &lt;BR /&gt;&lt;BR /&gt;So, what do you mean by suggesting "please try to call_SLASRT2 instead of SLASRT2"&lt;BR /&gt;&lt;BR /&gt;Your suggestion makes no sense?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 10:24:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828187#M5315</guid>
      <dc:creator>jon46089</dc:creator>
      <dc:date>2010-11-22T10:24:42Z</dc:date>
    </item>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828188#M5316</link>
      <description>Hello. Are you compiling with IA-32 or intel64? If you are using intel64 go to project properties&amp;gt;linker&amp;gt;input and in the tab Additional deppendencies add "mkl_scalapack_lp64.lib". If you are compiling in IA-32 add "mkl_scalapack_core.lib" in the same place. It should do the job. Be sure to have set the appropriates .lib and include paths, since sometimes the compiler couldn't find this libraries. I hope this solve your issue. &lt;BR /&gt;&lt;BR /&gt;Pedro&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 16:15:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828188#M5316</guid>
      <dc:creator>psantos</dc:creator>
      <dc:date>2010-11-22T16:15:46Z</dc:date>
    </item>
    <item>
      <title>undefined reference to `slasrt2'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828189#M5317</link>
      <description>For some odd reason, &lt;I&gt;slasrt2&lt;/I&gt; and &lt;I&gt;dlasrt2&lt;/I&gt; have been put into the SCALAPACK library. Therefore, to link those routines, you need to choose SCALAPACK as the "cluster" library, even if you have no need for it otherwise and are tempted to select "none". Here is a small test example, and the link line.&lt;BR /&gt;&lt;PRE&gt;[fxfortran]      program tslasrt2
      implicit none
      integer i,n,key(10),info
      real d(10)
      character*1 id
      n=10
      id='D'
      do i=1,n
         d(i)=mod(nint(2.718*i*i),20)
         key(i)=i
      end do
      call slasrt2(id,n,d,key,info)
      if(info.ne.0)then
         write(*,*)' info = ',info
         stop
      endif
      do i=1,n
         write(*,10)i,d(i),key(i)
      end do
   10 format(1x,I4,F10.5,2x,I4)
      end
[/fxfortran]&lt;/PRE&gt; The 64-bit link line:&lt;BR /&gt;&lt;PRE&gt;[bash]ifort -openmp tslasrt.f $MKLROOT/libmkl_scalapack_lp64.a 
      -Wl,--start-group $MKLROOT/libmkl_intel_lp64.a 
      $MKLROOT/libmkl_intel_thread.a $MKLROOT/libmkl_core.a 
      $MKLROOT/libmkl_blacs_lp64.a -Wl,--end-group 
      -openmp -lpthread
[/bash]&lt;/PRE&gt; The 32-bit link line:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]ifort tslasrt.f $MKLROOT/libmkl_scalapack_core.a  
    -Wl,--start-group $MKLROOT/libmkl_intel.a 
         $MKLROOT/libmkl_intel_thread.a 
         $MKLROOT/libmkl_core.a 
         $MKLROOT/libmkl_blacs_openmpi.a 
    -Wl,--end-group 
   -openmp -lpthread[/bash]&lt;/PRE&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 16:27:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-slasrt2/m-p/828189#M5317</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-11-22T16:27:37Z</dc:date>
    </item>
  </channel>
</rss>

