<?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 lapack95 linking problems in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884896#M9956</link>
    <description>&lt;P&gt;Mike,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BTW, link line was alsoa problemin that thead about LAPACK95 (see my reply #2)&lt;/P&gt;
&lt;P&gt;Also, you are right some arguments can be optional.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2010 13:54:41 GMT</pubDate>
    <dc:creator>barragan_villanueva_</dc:creator>
    <dc:date>2010-02-25T13:54:41Z</dc:date>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884886#M9946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the following piece of code,&lt;/P&gt;
&lt;P&gt;subroutine inv(A,N)&lt;/P&gt;
&lt;P&gt;use mkl95_lapack&lt;BR /&gt;use mkl95_precision&lt;BR /&gt;real(kind=8) :: A(N,N)&lt;BR /&gt;integer :: ipiv(N)&lt;BR /&gt;call getrf(A,ipiv)&lt;BR /&gt;call getri(A,ipiv)&lt;BR /&gt;end subroutine&lt;/P&gt;
&lt;P&gt;When I try to compile it I get an linker error,&lt;/P&gt;
&lt;P&gt;undefined reference to `dgetrf_mkl95_' . My ifort options are&lt;/P&gt;
&lt;P&gt;/opt/intel/Compiler/current//bin/intel64/ifort -O -X -p -module ../out-intel-x86_64/ &lt;BR /&gt;-L/opt/intel/Compiler/current//mkl/lib/em64t/ &lt;BR /&gt;-Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group &lt;BR /&gt;-openmp -lpthread -L/opt/intel/Compiler/current/mkl/lib/em64t/ -lmkl_lapack95_lp64 &lt;BR /&gt;-L/opt/intel/Compiler/current//lib/intel64/ -Belf64-x86-64 -i-dynamic &lt;BR /&gt;-L/opt/intel/Compiler/current//mkl/lib/em64t/ -o ../out-intel-x86_64/test.exe&lt;/P&gt;
&lt;P&gt;It seems to me that the problem is in the/opt/intel/Compiler/current//mkl/lib/em64t//libmkl_solver_lp64.a where the function dgetrf_mkl95_ is defined in the file dgetrf.o however it is not found. Any ideas?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2010 12:17:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884886#M9946</guid>
      <dc:creator>mike-s</dc:creator>
      <dc:date>2010-02-24T12:17:03Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884887#M9947</link>
      <description>&lt;P&gt;ld does static library recursive searches only in the group of libraries surrounded by start-group .... end-group.&lt;/P&gt;
&lt;P&gt;If you are using a recent version of ifort, installing it normally and sourceing the ifortvars script will take care of the -L paths, if you are using (default) dynamic libraries. It still would be much better to specify the options in order.&lt;/P&gt;
&lt;P&gt;If you want to find out which options are used and which are dropped when you randomize the order, perhaps the ifort -# option would help.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2010 13:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884887#M9947</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-02-24T13:43:00Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884888#M9948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please take a look at similar discussion:&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=72004"&gt;http://software.intel.com/en-us/forums/showthread.php?t=72004&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2010 14:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884888#M9948</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-24T14:37:40Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884889#M9949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks for the link. The only thing I found there that he apparantly has an libmkl_lapack95, which I do not have as a 64bit lib. From the docu I understand that those libs are split up in bigint and normal int libs with the suffixes ilp64 and lp64, so I guess that this is not a problem.&lt;/P&gt;
&lt;P&gt;As tim18 suggested, I cleaned up my library search paths which now looks like&lt;/P&gt;
&lt;P&gt;MKLPATH = /opt/intel/Compiler/current/mkl/lib/em64t/&lt;BR /&gt;LDFLAGS+= -Wl,--start-group \&lt;BR /&gt; -L $(MKLPATH) \&lt;BR /&gt; -lmkl_lapack -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group&lt;BR /&gt;LDFLAGS+= -openmp -lpthread&lt;BR /&gt;LDFLAGS+= -Wl,--start-group $(MKLPATH)/libmkl_lapack95_lp64.a -Wl,--end-group&lt;/P&gt;
&lt;P&gt;Since the module is found and nm tells me that the subroutine dgetrf_mkl95_ is in the file libmkl_lapack95_lp64 I am kind of lost why ifort does not find it. Any ideas?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2010 16:46:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884889#M9949</guid>
      <dc:creator>mike-s</dc:creator>
      <dc:date>2010-02-24T16:46:54Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884890#M9950</link>
      <description>&lt;P&gt;Hi Mike, assuming that $(LD_LIBRARY_PATH) contains your lib path for mkl em64t this line should work, I just tried a compiling a simple lapack95 code and everything went ok!&lt;/P&gt;
&lt;P&gt;ifort code.f -I(MKL_ROOT)/include/em64t/lp64/ -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;C.S.N&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 00:31:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884890#M9950</guid>
      <dc:creator>csnatarajan</dc:creator>
      <dc:date>2010-02-25T00:31:04Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884891#M9951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; The only thing I found.....&lt;/P&gt;
&lt;P&gt;In your test there is the follwing line:&lt;/P&gt;
&lt;P&gt; call getrf(A,ipiv)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But in that forum discussion you can find that getrf MKL FORTRAN 95 interface has three arguments.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 07:20:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884891#M9951</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-25T07:20:20Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884892#M9952</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;
&lt;P&gt;thanks for the message. I should have mentioned that I tried it also with info, however according to the doc the info is optional.&lt;/P&gt;
&lt;P&gt;( &lt;A href="http://www.intel.com/software/products/mkl/docs/webhelp/lle/functn_getrf.html" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/webhelp/lle/functn_getrf.html&lt;/A&gt; )&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 08:32:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884892#M9952</guid>
      <dc:creator>mike-s</dc:creator>
      <dc:date>2010-02-25T08:32:19Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884893#M9953</link>
      <description>&lt;P&gt;Hi C.S.,&lt;/P&gt;
&lt;P&gt;thanks for trying it out. I tried the same, however still with the same error,&lt;/P&gt;
&lt;P&gt;test.f90:(.text+0xf5): undefined reference to `dgetrf_mkl95_'&lt;BR /&gt;Can you check if you have an $MKL_ROOT/lib/em64t/libmkl_lapack95_lp64.so ?&lt;/P&gt;
&lt;P&gt;I only have a static archive (.a) and wonder if this could be the cause.&lt;/P&gt;
&lt;P&gt;Thanks for all the help,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;attached my test program, I tried to compiled it with&lt;/P&gt;
&lt;P&gt;ifort -I /opt/intel/Compiler/current/mkl/include/em64t/lp64/ -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 test.f90&lt;/P&gt;
&lt;P&gt;and I also tried to replace the mkl_lapack95_lp64 with mkl_lapack&lt;/P&gt;
&lt;P&gt;ifort -I /opt/intel/Compiler/current/mkl/include/em64t/lp64/ -lmkl_lapack -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 test.f90&lt;/P&gt;
&lt;P&gt;Compiler output in both cases is&lt;/P&gt;
&lt;P&gt;/tmp/ifortxkWohV.o: In function `MAIN__':&lt;BR /&gt;test.f90:(.text+0xf5): undefined reference to `dgetrf_mkl95_'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;program test&lt;BR /&gt;use mkl95_lapack&lt;BR /&gt;use mkl95_precision&lt;BR /&gt;real*8 :: X(10,10)&lt;BR /&gt;integer :: info&lt;BR /&gt;integer,parameter :: n = 10&lt;BR /&gt;integer :: ipiv(n)&lt;BR /&gt;call getrf(X,ipiv,info)&lt;BR /&gt;end program&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 08:40:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884893#M9953</guid>
      <dc:creator>mike-s</dc:creator>
      <dc:date>2010-02-25T08:40:08Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884894#M9954</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Please use-lmkl_lapack95_lp64 instead of -lmkl_lapack and source file before libraries.&lt;/P&gt;
&lt;P&gt;So, correct link line is as follows:&lt;/P&gt;
&lt;P&gt;ifort -I$MKLROOT/include/em64t/lp64 test.f90 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 11:51:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884894#M9954</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-25T11:51:45Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884895#M9955</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks a lot. The solution was to put the libs after the source file.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884895#M9955</guid>
      <dc:creator>mike-s</dc:creator>
      <dc:date>2010-02-25T13:03:31Z</dc:date>
    </item>
    <item>
      <title>lapack95 linking problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884896#M9956</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BTW, link line was alsoa problemin that thead about LAPACK95 (see my reply #2)&lt;/P&gt;
&lt;P&gt;Also, you are right some arguments can be optional.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2010 13:54:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/lapack95-linking-problems/m-p/884896#M9956</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-25T13:54:41Z</dc:date>
    </item>
  </channel>
</rss>

