<?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 You have two mistakes. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127736#M25388</link>
    <description>&lt;P&gt;You have two mistakes.&lt;/P&gt;

&lt;P&gt;1. You called the generic subroutine syev(), which takes optional arguments as well, without providing an interface. You can correct this by inserting the statement &lt;STRONG&gt;use lapack95&lt;/STRONG&gt; in the caller(s).&amp;nbsp; See the section "Fortran 95 Interface Conventions for LAPACK Routines" in the MKL Reference (Fortran).&lt;/P&gt;

&lt;P&gt;2. You should specify that the linker should use the Lapack95 library. To find the list of libraries to use, you may use the MKL Link Line Advisor, &lt;A href="https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm" target="_blank"&gt;https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm&lt;/A&gt; .&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 01:01:56 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2018-09-13T01:01:56Z</dc:date>
    <item>
      <title>f90 compiling/linking to MKL library - syev routine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127735#M25387</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to link my code to syev LAPACK 95 routine and cannot compile it can you help with I am missing?&lt;/P&gt;

&lt;P&gt;The code with compile ok with ssyev but is more convenient to use f95 interfaces&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;ifort -O3&amp;nbsp; -mkl=sequential&amp;nbsp; &amp;nbsp;test.f90 test.x&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;real :: corr(5,5), eval(5)&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;&amp;nbsp; CALL syev(corr,eval,'V')&lt;/P&gt;

&lt;P&gt;&amp;nbsp; PRINT *,eval&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;/tmp/ifortGvqotk.o: In function `MAIN__':&lt;BR /&gt;
	test.f90:(.text+0x411f): undefined reference to `syev_'&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 16:15:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127735#M25387</guid>
      <dc:creator>mzp</dc:creator>
      <dc:date>2018-09-12T16:15:54Z</dc:date>
    </item>
    <item>
      <title>You have two mistakes.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127736#M25388</link>
      <description>&lt;P&gt;You have two mistakes.&lt;/P&gt;

&lt;P&gt;1. You called the generic subroutine syev(), which takes optional arguments as well, without providing an interface. You can correct this by inserting the statement &lt;STRONG&gt;use lapack95&lt;/STRONG&gt; in the caller(s).&amp;nbsp; See the section "Fortran 95 Interface Conventions for LAPACK Routines" in the MKL Reference (Fortran).&lt;/P&gt;

&lt;P&gt;2. You should specify that the linker should use the Lapack95 library. To find the list of libraries to use, you may use the MKL Link Line Advisor, &lt;A href="https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm" target="_blank"&gt;https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 01:01:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127736#M25388</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-09-13T01:01:56Z</dc:date>
    </item>
    <item>
      <title>you may also take a look at</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127737#M25389</link>
      <description>&lt;P&gt;you may also take a look at the syev.f90 example and you will see all needed to build and run. you may find out this example into mklroot\examples\lapack95\source folder&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 03:33:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127737#M25389</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-09-13T03:33:12Z</dc:date>
    </item>
    <item>
      <title>Thanks, the code will compile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127738#M25390</link>
      <description>&lt;P&gt;Thanks, the code will compile with&lt;/P&gt;

&lt;P&gt;mpiifort -O2 test.f90 -mkl=parallel -o test.x -lmkl_lapack95_lp64&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;ifort -O2 test.f90 -mkl=sequential -o test.x -lmkl_lapack95_lp64&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;and insert&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 700; font-size: 12px;"&gt;use lapack95 in the main block&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-weight: 700; font-size: 12px;"&gt;Many thanks for helping!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 18:41:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/f90-compiling-linking-to-MKL-library-syev-routine/m-p/1127738#M25390</guid>
      <dc:creator>mzp</dc:creator>
      <dc:date>2018-09-13T18:41:17Z</dc:date>
    </item>
  </channel>
</rss>

