<?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 Re: ifort + lapack/blas lib in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759240#M14727</link>
    <description>&lt;BR /&gt;Have you verified a LAPACK library like this actually exists:&lt;BR /&gt;&lt;BR /&gt;/home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib/liblapack.a ?</description>
    <pubDate>Wed, 16 Sep 2009 18:37:15 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2009-09-16T18:37:15Z</dc:date>
    <item>
      <title>ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759239#M14726</link>
      <description>Hi, I hope this is the right place to post my question. I am trying to run a program which needs the LAPACK/BLAS library. I have been able to set up the library but when I try to run my program I get this error:&lt;BR /&gt;&lt;BR /&gt; ... SiBDRV.o  -g -fast -L/home/rosolem/lib/netcdf-4.0.1+ifort-10.1/lib/ -lnetcdf -L/home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib/ -llapack -lblas -lpgmp -lpthread -o  SiBD3&lt;BR /&gt; IPO link: can not find -llapack&lt;BR /&gt; ifort: error #10014: problem during multi-file optimization compilation (code 1)&lt;BR /&gt; make: *** [SiBD3] Error 1&lt;BR /&gt;&lt;BR /&gt;All the paths (netcdf and lapack) are correct, but somehow it doesn't find the 'lapack'. I am new with ifort/lapack and I'd appreciate if someone could assist me with that. These are the Makefile options/flags I am currently using:&lt;BR /&gt;&lt;BR /&gt; # BLAS-(64-BIT)&lt;BR /&gt; LALIB = /home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib/&lt;BR /&gt;&lt;BR /&gt; # Netcdf&lt;BR /&gt; NETCDFINC = /home/rosolem/lib/netcdf-4.0.1+ifort-10.1/include/&lt;BR /&gt; NETCDFLIB = /home/rosolem/lib/netcdf-4.0.1+ifort-10.1/lib/&lt;BR /&gt;&lt;BR /&gt; # Includes and Links&lt;BR /&gt; # -------------------------------------------------------------------------&lt;BR /&gt; INCLUDES  = -I$(NETCDFINC)&lt;BR /&gt; LINKS     = -L$(NETCDFLIB) -lnetcdf -L$(LALIB) -llapack -lblas -lpgmp -lpthread&lt;BR /&gt;&lt;BR /&gt; # Fortran90 Compiler&lt;BR /&gt; # -------------------------------------------------------------------------&lt;BR /&gt; # Intel 8.0 compiler&lt;BR /&gt; F90       = ifort&lt;BR /&gt; F90FLAGS  = -g -O3 -DPGF=1 -fast -fpe0 $(INCLUDES)&lt;BR /&gt;&lt;BR /&gt; # F90Linker Arguments&lt;BR /&gt; # Intel 8.0 compiler&lt;BR /&gt; LNKFLAGS  = -g -fast $(LINKS)&lt;BR /&gt;&lt;BR /&gt;This is the make.inc when I first install lapack:&lt;BR /&gt;&lt;BR /&gt; FORTRAN  = ifort&lt;BR /&gt; OPTS     = -O3&lt;BR /&gt; DRVOPTS  = $(OPTS)&lt;BR /&gt; NOOPT    = -O3 -fltconsistency -fp_port&lt;BR /&gt; LOADER   = ifort&lt;BR /&gt; LOADOPTS = -O3&lt;BR /&gt;&lt;BR /&gt;Finally, some additional information regarding machine, and compiler/libraries version:&lt;BR /&gt;&lt;BR /&gt;Kernel: Linux&lt;BR /&gt;Mahcine: Intel Xeon CPU E5472 @ 3.00GHz&lt;BR /&gt;Processor: x86_64&lt;BR /&gt;OS: GNU/Linux&lt;BR /&gt;Intel Fortran Compiler for applications running on Intel 64, Version 10.1 Build 20080801 Package ID: l_fc_p_10.1.018&lt;BR /&gt;LAPACK version 3.1.1&lt;BR /&gt;NetCDF version 4.0.1&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Rafael</description>
      <pubDate>Wed, 16 Sep 2009 18:29:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759239#M14726</guid>
      <dc:creator>Rafael</dc:creator>
      <dc:date>2009-09-16T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759240#M14727</link>
      <description>&lt;BR /&gt;Have you verified a LAPACK library like this actually exists:&lt;BR /&gt;&lt;BR /&gt;/home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib/liblapack.a ?</description>
      <pubDate>Wed, 16 Sep 2009 18:37:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759240#M14727</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-09-16T18:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759241#M14728</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335337"&gt;Kevin Davis (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Have you verified a LAPACK library like this actually exists:&lt;BR /&gt;&lt;BR /&gt;/home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib/liblapack.a ?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;These are the files I have in /home/rosolem/lib/lapack-3.1.1+ifort-10.1/lib&lt;BR /&gt;&lt;BR /&gt;blas_LINUX.a&lt;BR /&gt;lapack_LINUX.a&lt;BR /&gt;tmglib_LINUX.a&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Sep 2009 18:44:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759241#M14728</guid>
      <dc:creator>Rafael</dc:creator>
      <dc:date>2009-09-16T18:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759242#M14729</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The (ld) linker &lt;STRONG&gt;-l&amp;lt;&lt;EM&gt;library&lt;/EM&gt;&amp;gt;&lt;/STRONG&gt; option expects the library to be named with a "lib" prefix and suffix like ".a", but that one drop both the prefix and suffix when specifying the library in the option.&lt;BR /&gt;&lt;BR /&gt;To use the syntax appearing in the &lt;STRONG&gt;LINKS&lt;/STRONG&gt; variable in your makefile, your libraries need to be named like this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;libllapack.a libblas.a libtmglib.a&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;You could also rename them (add the &lt;STRONG&gt;lib&lt;/STRONG&gt; prefix) so they become:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;libllapack_LINUX.a libblas_LINUX.a libtmglib_LINUX.a&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;and then change &lt;STRONG&gt;LINKS&lt;/STRONG&gt; (add the &lt;STRONG&gt;_LINUX&lt;/STRONG&gt; suffix) in the makefile to be:&lt;BR /&gt;&lt;BR /&gt;LINKS = -L$(NETCDFLIB) -lnetcdf -L$(LALIB) -llapack_LINUX -lblas_LINUX -lpgmp -lpthread&lt;BR /&gt;&lt;BR /&gt;I do not see an explicit use of the tmglib in the makefile excerpts provided so its use is unclear.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Sep 2009 19:04:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759242#M14729</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-09-16T19:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759243#M14730</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335337"&gt;Kevin Davis (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;The (ld) linker &lt;STRONG&gt;-l&amp;lt;&lt;EM&gt;library&lt;/EM&gt;&amp;gt;&lt;/STRONG&gt; option expects the library to be named with a "lib" prefix and suffix like ".a", but that one drop both the prefix and suffix when specifying the library in the option.&lt;BR /&gt;&lt;BR /&gt;To use the syntax appearing in the &lt;STRONG&gt;LINKS&lt;/STRONG&gt; variable in your makefile, your libraries need to be named like this:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;libllapack.a libblas.a libtmglib.a&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;You could also rename them (add the &lt;STRONG&gt;lib&lt;/STRONG&gt; prefix) so they become:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;libllapack_LINUX.a libblas_LINUX.a libtmglib_LINUX.a&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;and then change &lt;STRONG&gt;LINKS&lt;/STRONG&gt; (add the &lt;STRONG&gt;_LINUX&lt;/STRONG&gt; suffix) in the makefile to be:&lt;BR /&gt;&lt;BR /&gt;LINKS = -L$(NETCDFLIB) -lnetcdf -L$(LALIB) -llapack_LINUX -lblas_LINUX -lpgmp -lpthread&lt;BR /&gt;&lt;BR /&gt;I do not see an explicit use of the tmglib in the makefile excerpts provided so its use is unclear.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thank you! It seems that I am able to compile the code, but now I get a different message:&lt;BR /&gt;&lt;BR /&gt;init_sibdrv.F90(554): (col. 8) remark: LOOP WAS VECTORIZED.&lt;BR /&gt;backend signals&lt;BR /&gt;&lt;BR /&gt;fortcom: Severe: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.&lt;BR /&gt;&lt;BR /&gt;ifort: error #10014: problem during multi-file optimization compilation (code 3)&lt;BR /&gt;make: *** [SiBD3] Error 3&lt;BR /&gt;&lt;BR /&gt;I have included &lt;EM&gt;tmglib in LINKS, as follows:&lt;BR /&gt;LINKS = -L$(NETCDFLIB) -lnetcdf -L$(LALIB) -llapack_LINUX -lblas_LINUX -ltmglib_LINUX -lpthread&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;</description>
      <pubDate>Wed, 16 Sep 2009 19:41:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759243#M14730</guid>
      <dc:creator>Rafael</dc:creator>
      <dc:date>2009-09-16T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759244#M14731</link>
      <description>&lt;BR /&gt;It appears the compiler options used + source code (init_sibdrv.F90) have aggravated an internal compiler error when compiling init_sibdrv.F90.&lt;BR /&gt;&lt;BR /&gt;Our latest 11.1 release might contain a fix, so if you can upgrade beyond the 10.1.018 compiler you are using you might be able to continue using the high-level optimizations you have chosen. Otherwise you may have to compile only init_sibdrv.F90 at an lower optimization level, like &lt;STRONG&gt;-O2&lt;/STRONG&gt; or even &lt;STRONG&gt;-O1&lt;/STRONG&gt; or remove &lt;STRONG&gt;-fast&lt;/STRONG&gt; or even &lt;STRONG&gt;-g,&lt;/STRONG&gt; to avoid the error and successfully compile the entire application at the higher opt levels.</description>
      <pubDate>Wed, 16 Sep 2009 20:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759244#M14731</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-09-16T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759245#M14732</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335337"&gt;Kevin Davis (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;It appears the compiler options used + source code (init_sibdrv.F90) have aggravated an internal compiler error when compiling init_sibdrv.F90.&lt;BR /&gt;&lt;BR /&gt;Our latest 11.1 release might contain a fix, so if you can upgrade beyond the 10.1.018 compiler you are using you might be able to continue using the high-level optimizations you have chosen. Otherwise you may have to compile only init_sibdrv.F90 at an lower optimization level, like &lt;STRONG&gt;-O2&lt;/STRONG&gt; or even &lt;STRONG&gt;-O1&lt;/STRONG&gt; or remove &lt;STRONG&gt;-fast&lt;/STRONG&gt; or even &lt;STRONG&gt;-g,&lt;/STRONG&gt; to avoid the error and successfully compile the entire application at the higher opt levels.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Dear Kevin Davis,&lt;BR /&gt;&lt;BR /&gt;I have successfully compiled my code after removing the -fast flag.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;R&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Sep 2009 15:41:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759245#M14732</guid>
      <dc:creator>Rafael</dc:creator>
      <dc:date>2009-09-21T15:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759246#M14733</link>
      <description>&lt;BR /&gt;Glad to hear that Rafael. The &lt;STRONG&gt;-fast&lt;/STRONG&gt; option is a short-hand notation for several separate options. For 10.1 compiler you are using, &lt;STRONG&gt;-fast&lt;/STRONG&gt; (for Linux) enables: &lt;STRONG&gt;-ipo, -O3, -no-prec-div, -static, -xT&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;Removing &lt;STRONG&gt;-fast&lt;/STRONG&gt; compiles the program at the default optimization level, &lt;STRONG&gt;-O2&lt;/STRONG&gt;, if no explicit optimization level is specified. You can, if interested, explore the performance benefit of any individual option &lt;STRONG&gt;-fast&lt;/STRONG&gt; enables if you wish.&lt;BR /&gt;&lt;BR /&gt;The two options I suspect might cause the internal compiler error are &lt;STRONG&gt;-O3&lt;/STRONG&gt; and &lt;STRONG&gt;-ipo&lt;/STRONG&gt;.</description>
      <pubDate>Mon, 21 Sep 2009 16:18:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759246#M14733</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-09-21T16:18:01Z</dc:date>
    </item>
    <item>
      <title>ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759247#M14734</link>
      <description>Dear Rafael:&lt;BR /&gt;&lt;BR /&gt;I'm also using the Sib3 model now, but I don't know what the library "pgmp" stand for, and whenever I complie the code, there's error indication like this" cannot find -lpgmp".&lt;BR /&gt;&lt;BR /&gt;zhang</description>
      <pubDate>Tue, 19 Oct 2010 12:28:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759247#M14734</guid>
      <dc:creator>zhangquan09</dc:creator>
      <dc:date>2010-10-19T12:28:38Z</dc:date>
    </item>
    <item>
      <title>ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759248#M14735</link>
      <description>The -lpgmp flag indicates that the library libpgmp.a (or libpgmp.so) is to be linked with the other objects. &lt;BR /&gt;&lt;BR /&gt;It can be either the GNU arbitrary precision library, or another library with the same name but different purpose. You will have to read the documentation of the software that you are trying to build.to find which of these possibilities is the correct one to use.</description>
      <pubDate>Tue, 19 Oct 2010 12:48:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759248#M14735</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-10-19T12:48:08Z</dc:date>
    </item>
    <item>
      <title>ifort + lapack/blas lib</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759249#M14736</link>
      <description>Did you select a PGI compiler section of the makefile? libpgmp.so would be the OpenMP library for pgf90 and pgcc, analogous to libiomp5.so for ifort. One more indication why it's better to use the compiler's options rather than select specific processor-dependent libraries. In that connection, the pgf90 -mp (OpenMP option) won't be interpreted as -openmp by ifort, as it is an obsolete ifort option with different meaning.</description>
      <pubDate>Tue, 19 Oct 2010 13:16:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-lapack-blas-lib/m-p/759249#M14736</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-10-19T13:16:29Z</dc:date>
    </item>
  </channel>
</rss>

