<?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 ifort compilation error- failes to recognize MKL Lapack function dlange() in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019987#M19678</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; My question is perhaps very bugging since I'm a complete novice.. Could you please advice me about properly linking &amp;amp; compiling my F90 code to use MKL Lapack routines &amp;amp; libraries.. I can already use all MKL Lapack routines without problems but when I try to use a function (like real*8 function dlange), the compilation fails &amp;amp; gives an error like this:&lt;/P&gt;

&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	srihari@simpatix101:~/atomion/1Dho/propamicro_AngFort$ make -f Make_test&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/propamicro_AngFort/hills.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/mothpl.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/vsrtrd.f&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/matmulpar.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/lglnodes.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/pleg5.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/kingll.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/tkingl_mod.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90&lt;BR /&gt;
	/homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90(19): error #6404: This name does not have a type, and must have an explicit type. &amp;nbsp; [DLANGE]&lt;BR /&gt;
	&amp;nbsp;nrm=dlange('1', 10, 10, bla, 10, work)&lt;BR /&gt;
	-----^&lt;BR /&gt;
	compilation aborted for /homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90 (code 1)&lt;BR /&gt;
	make: *** [test.o] Error 1&lt;/P&gt;

&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; I have attacked my make file here for reference..&amp;nbsp;&lt;BR /&gt;
	details: Using Intel MKL 11.1 on Linux on AMD64 architecture. Multithreaded dynamic linking with LP64. I'm using Intel OpenMP libraries..&lt;/P&gt;

&lt;P&gt;I have added *.txt extension just to upload here without problems..&lt;/P&gt;

&lt;P&gt;Any &amp;amp; all help will be greatly appreciated! Thanks !&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2014 15:36:45 GMT</pubDate>
    <dc:creator>srinivasan__srihari</dc:creator>
    <dc:date>2014-08-08T15:36:45Z</dc:date>
    <item>
      <title>ifort compilation error- failes to recognize MKL Lapack function dlange()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019987#M19678</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; My question is perhaps very bugging since I'm a complete novice.. Could you please advice me about properly linking &amp;amp; compiling my F90 code to use MKL Lapack routines &amp;amp; libraries.. I can already use all MKL Lapack routines without problems but when I try to use a function (like real*8 function dlange), the compilation fails &amp;amp; gives an error like this:&lt;/P&gt;

&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	srihari@simpatix101:~/atomion/1Dho/propamicro_AngFort$ make -f Make_test&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/propamicro_AngFort/hills.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/mothpl.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/vsrtrd.f&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/matmulpar.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/lglnodes.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/pleg5.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/kingll.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/tkingl_mod.f90&lt;BR /&gt;
	ifort -openmp -O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90&lt;BR /&gt;
	/homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90(19): error #6404: This name does not have a type, and must have an explicit type. &amp;nbsp; [DLANGE]&lt;BR /&gt;
	&amp;nbsp;nrm=dlange('1', 10, 10, bla, 10, work)&lt;BR /&gt;
	-----^&lt;BR /&gt;
	compilation aborted for /homes/srihari/atomion/1Dho/propamicro_AngFort/test.f90 (code 1)&lt;BR /&gt;
	make: *** [test.o] Error 1&lt;/P&gt;

&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; I have attacked my make file here for reference..&amp;nbsp;&lt;BR /&gt;
	details: Using Intel MKL 11.1 on Linux on AMD64 architecture. Multithreaded dynamic linking with LP64. I'm using Intel OpenMP libraries..&lt;/P&gt;

&lt;P&gt;I have added *.txt extension just to upload here without problems..&lt;/P&gt;

&lt;P&gt;Any &amp;amp; all help will be greatly appreciated! Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:36:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019987#M19678</guid>
      <dc:creator>srinivasan__srihari</dc:creator>
      <dc:date>2014-08-08T15:36:45Z</dc:date>
    </item>
    <item>
      <title>Correction, the displayed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019988#M19679</link>
      <description>&lt;P&gt;Correction, the displayed error for the attached make file is this one posted here..&lt;BR /&gt;
	------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;srihari@simpatix101:~/atomion/1Dho/propamicro_AngFort$ make -f Make_propamicro_linux&amp;nbsp;&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/propamicro_AngFort/hills.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/de2p_sort.f&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/pleg5.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/kingll.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/lglnodes.f90&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/tkingl_mod.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/mothpl.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/matmulpar.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/matinv.f90&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/mldivide.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/source/Libs/mldivrect.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/vsrtrd.f&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/source/Libs/m_mrgrnk.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -c /homes/srihari/atomion/1Dho/propamicro_AngFort/get_input.f90&lt;BR /&gt;
	ifort &amp;nbsp;-O0 -g -check bounds -traceback -heap-arrays -lmkl_lapack -I /opt/intel/Compiler/11.1/089/Frameworks/mkl/include/ -c /homes/srihari/atomion/1Dho/propamicro_AngFort/JMpropMod.f90&lt;BR /&gt;
	/homes/srihari/atomion/1Dho/propamicro_AngFort/JMpropMod.f90(562): error #6404: This name does not have a type, and must have an explicit type. &amp;nbsp; [DLANGE]&lt;BR /&gt;
	&amp;nbsp; norm='1'; xnrm1=dlange(norm, nc, nc, tmp1, nc, work)&lt;BR /&gt;
	------------------^&lt;BR /&gt;
	compilation aborted for /homes/srihari/atomion/1Dho/propamicro_AngFort/JMpropMod.f90 (code 1)&lt;BR /&gt;
	make: *** [JMpropMod.o] Error 1&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 15:39:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019988#M19679</guid>
      <dc:creator>srinivasan__srihari</dc:creator>
      <dc:date>2014-08-08T15:39:20Z</dc:date>
    </item>
    <item>
      <title>You must provide a type</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019989#M19680</link>
      <description>&lt;P&gt;It is incorrect for you to expect that the Fortran compiler should know the type of a function other than a Fortran intrinsic function. In particular, the routines in MKL are not required to be available in any standard-conforming Fortran compiler package.&lt;/P&gt;

&lt;P&gt;You must provide a type declaration for external functions that are referenced in expressions when the implicit type convention gives an incorrect type or if IMPLICIT NONE is in effect. Do you have an IMPLICIT NONE declaration in your subprogram &amp;nbsp;that calls dlange() ?&lt;/P&gt;

&lt;P&gt;In your specific case, dlange() is of type DOUBLE PRECISION, but the default type for variables and functions starting with 'D' is REAL.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 17:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019989#M19680</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-08-08T17:54:00Z</dc:date>
    </item>
    <item>
      <title>Realized the mistake was in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019990#M19681</link>
      <description>&lt;P&gt;Realized the mistake was in my code.. thanks for the reply! :)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 20:43:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-compilation-error-failes-to-recognize-MKL-Lapack-function/m-p/1019990#M19681</guid>
      <dc:creator>srinivasan__srihari</dc:creator>
      <dc:date>2014-08-11T20:43:37Z</dc:date>
    </item>
  </channel>
</rss>

