<?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 Dear Tim, thanks for your in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062122#M21733</link>
    <description>&lt;P&gt;Dear Tim, thanks for your response!&lt;/P&gt;

&lt;P&gt;I followed the on-line advice (11.2 MKL Linux, GNU Fortran, Intel 64, Static, LP64, Sequential LAPACK95),&lt;BR /&gt;
	and nothing seems to have changed in the results of the compiler call.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;export F95ROOT=/opt/sw/intel/mkl
export MKLROOT=/opt/sw/intel/mkl
gfortran test.f03 $F95ROOT/lib/intel64/libmkl_lapack95_lp64.a -Wl,--start-group $MKLROOT/lib/intel64/libmkl_gf_lp64.a $MKLROOT/lib/intel64/libmkl_core.a $MKLROOT/lib/intel64/libmkl_sequential.a -Wl,--end-group -lpthread -lm -ldl -I./include -m64 -I$F95ROOT/include

/opt/sw/intel/mkl/lib/intel64/libmkl_lapack95_lp64.a(dgetrf.o): In function `dgetrf_f95_':
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xa76): undefined reference to `for_dealloc_allocatable'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb46): undefined reference to `for_check_mult_overflow64'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb63): undefined reference to `for_allocate'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xbc8): undefined reference to `for_check_mult_overflow64'
collect2: error: ld returned 1 exit status&lt;/PRE&gt;

&lt;P&gt;I am not entirely sure what you mean by f95 wrapper library and can't find any relevant google results.&lt;BR /&gt;
	Can you explain what you mean by this, or do you have any further suggestions to fix resolve the original issue?&lt;/P&gt;</description>
    <pubDate>Sat, 14 May 2016 14:50:31 GMT</pubDate>
    <dc:creator>Nick_V_1</dc:creator>
    <dc:date>2016-05-14T14:50:31Z</dc:date>
    <item>
      <title>Gfortran compiler linking help LAPACK95</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062120#M21731</link>
      <description>&lt;P&gt;Dear Mr. / Mrs. ,&lt;/P&gt;

&lt;P&gt;I'm having difficulty compiling code that uses the DGETRF and DGETRI Fortran functions.&lt;BR /&gt;
	Below I placed a very small test example "test.f03", that illustrates my problem:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program main
use lapack95, only: DGETRF_F95

implicit none

integer :: i,j,info
integer, dimension(20) :: ipiv
real(8), dimension(20,20) :: test1,inverse1

do i=1,20
  test1(i,:) = (/ (j,j=i,19+i) /)
end do
inverse1 = test1
call DGETRF_F95(inverse1,ipiv,info)

if (info /= 0) then
  stop 'Matrix is numerically singular'
end if

end program main&lt;/PRE&gt;

&lt;P&gt;When I attempt to compile this code I get the following errors:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;bash-4.3$ gfortran test.f03 -I./include -L/opt/sw/intel/mkl/lib/intel64 -lmkl_lapack95_lp64 -lmkl_rt&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;/opt/sw/intel/mkl/lib/intel64/libmkl_lapack95_lp64.a(dgetrf.o): In function `dgetrf_f95_':&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xa76): undefined reference to `for_dealloc_allocatable'&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb46): undefined reference to `for_check_mult_overflow64'&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb63): undefined reference to `for_allocate'&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xbc8): undefined reference to `for_check_mult_overflow64'&lt;/SPAN&gt;&lt;BR style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(51, 51, 51); font-family: monospace; font-size: 14.16px; line-height: normal;"&gt;collect2: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Which is completely unknown to me. Could somebody tell me what I'm missing here?&lt;/P&gt;

&lt;P&gt;Thank you for your time!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 11:18:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062120#M21731</guid>
      <dc:creator>Nick_V_1</dc:creator>
      <dc:date>2016-05-14T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Please follow the on-line</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062121#M21732</link>
      <description>&lt;P&gt;Please follow the on-line advice: &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You require at least the mkl core and a choice of lp or ilp and sequential or thread (according to your choice of openmp) libraries, besides the f95 wrapper library (which is best used to support documented blas95 and lapack95 calls).&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 13:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062121#M21732</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-05-14T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Dear Tim, thanks for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062122#M21733</link>
      <description>&lt;P&gt;Dear Tim, thanks for your response!&lt;/P&gt;

&lt;P&gt;I followed the on-line advice (11.2 MKL Linux, GNU Fortran, Intel 64, Static, LP64, Sequential LAPACK95),&lt;BR /&gt;
	and nothing seems to have changed in the results of the compiler call.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;export F95ROOT=/opt/sw/intel/mkl
export MKLROOT=/opt/sw/intel/mkl
gfortran test.f03 $F95ROOT/lib/intel64/libmkl_lapack95_lp64.a -Wl,--start-group $MKLROOT/lib/intel64/libmkl_gf_lp64.a $MKLROOT/lib/intel64/libmkl_core.a $MKLROOT/lib/intel64/libmkl_sequential.a -Wl,--end-group -lpthread -lm -ldl -I./include -m64 -I$F95ROOT/include

/opt/sw/intel/mkl/lib/intel64/libmkl_lapack95_lp64.a(dgetrf.o): In function `dgetrf_f95_':
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xa76): undefined reference to `for_dealloc_allocatable'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb46): undefined reference to `for_check_mult_overflow64'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xb63): undefined reference to `for_allocate'
../../../../interfaces/lapack95/source/dgetrf.f90:(.text+0xbc8): undefined reference to `for_check_mult_overflow64'
collect2: error: ld returned 1 exit status&lt;/PRE&gt;

&lt;P&gt;I am not entirely sure what you mean by f95 wrapper library and can't find any relevant google results.&lt;BR /&gt;
	Can you explain what you mean by this, or do you have any further suggestions to fix resolve the original issue?&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 14:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062122#M21733</guid>
      <dc:creator>Nick_V_1</dc:creator>
      <dc:date>2016-05-14T14:50:31Z</dc:date>
    </item>
    <item>
      <title>For example, getrf is a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062123#M21734</link>
      <description>&lt;P&gt;For example, getrf is a documented supported function call with plenty of references on line.&amp;nbsp; You may have chosen an undocumented entry point which relies on ifort support libraries.&amp;nbsp;&amp;nbsp; dgetrf is a documented call which doesn't depend on lapack95 (and is specialized to double precision) but ought to include gfortran compatible implementation.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 15:32:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062123#M21734</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-05-14T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Thank you for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062124#M21735</link>
      <description>&lt;P&gt;Thank you for your suggestions,&lt;/P&gt;

&lt;P&gt;On the page of the Link Line Advisor I found the line:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;"&gt;Set the F95ROOT variable. Fortran 95 interfaces are compiler-dependent. The&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;" /&gt;
		&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;"&gt;Fortran 95 interfaces and wrappers are delivered as sources, build the&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;" /&gt;
		&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;"&gt;appropriate library and modules with your&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;" /&gt;
		&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;"&gt;compiler. Please see also the Intel(R) MKL User&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;" /&gt;
		&lt;SPAN style="color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif; font-size: 13.3333px; line-height: 16px; text-align: justify;"&gt;Guide.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Apparently one has to "make" a locally compiled version of LAPACK. Once I did that and used the path as $F95ROOT, the program I provided above compiled and functioned just fine. This issue is now resolved.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 22:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Gfortran-compiler-linking-help-LAPACK95/m-p/1062124#M21735</guid>
      <dc:creator>Nick_V_1</dc:creator>
      <dc:date>2016-05-14T22:22:00Z</dc:date>
    </item>
  </channel>
</rss>

