<?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 Fortran 95 syntax is not compiling in MKL 10.3 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837077#M6122</link>
    <description>Thank you all for the replies.&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I was trying a small test program to solve a linear system, namely:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; program Testing&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; USE mkl95_LAPACK&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; implicit none&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; ! &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; double precision, dimension(2,2)::A,C,Y&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; double precision, dimension(2):: x,b&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; ! RiserSIM3D &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; print *, 'Hello World'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Zeroing the vectors/matrices;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;x=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Defining A;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(1,1) =-2;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(1,2) = 3;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(2,1) = 9;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(2,2) =-3;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Defining b;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b(1) = 8;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b(2) =-15;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Solving A*x=b;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;call GESV(A,b); !(Fortran 95 syntax);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;endprogram Testing&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The above program is now correct and the solution of system is supposed to be -1,2.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;The problem before was that I declared the vector b using the following declaration:&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;double precision, dimension(2,1):: x,b&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;!wrong declaration;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The IVF compiler understood the above x and b as rank 2 arrays and did not compile the program because an array (rank 1) was expected as second input of GESV (from MKL's LAPACK) using the Fortran 95.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The some compilation problem did not occur using the Fortran 77 syntax.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It was a shameable mistake of mine.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Again, thank you everyone for the replies. I am realy sorry to take your time.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My best regards,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Marcio Yamamoto&lt;/DIV&gt;</description>
    <pubDate>Tue, 19 Apr 2011 07:21:14 GMT</pubDate>
    <dc:creator>marcioy</dc:creator>
    <dc:date>2011-04-19T07:21:14Z</dc:date>
    <item>
      <title>Fortran 95 syntax is not compiling in MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837073#M6118</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I had used IMSL for some time (IVF 11.x) inverting matrices, solving linear systems, etc for Finite Element Analysis. Now I have to migrate to MKL 10.3+Intel Visual Fortran Composer XE 2011.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I followed the user guide and set the MS Visual Studio as follow:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-Properties-&amp;gt;Fortran-&amp;gt;General-&amp;gt;Additional Include Directories:&amp;lt;...&amp;gt;\\mkl\\include\\ia32&lt;/DIV&gt;&lt;DIV&gt;-Properties-&amp;gt;Linker-&amp;gt;General-&amp;gt;Additional Library Directories:&amp;lt;...&amp;gt;\\mkl\\lib\\ia32&lt;/DIV&gt;&lt;DIV&gt;-Properties-&amp;gt;Linker-&amp;gt;Additional Dependencies:mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib mkl_scalapack_core.lib mkl_blas95.lib&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I can use the MKL library using the Fortran 77 syntax, but when I try to use the Fortran 95 syntax, I cannot compile, IFV gives me "error #6285" saying that the called MKL subroutine does not exist.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I think I am forgetting to set anything... Anybody has any suggestion?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Marcio Yamamoto&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Apr 2011 09:04:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837073#M6118</guid>
      <dc:creator>marcioy</dc:creator>
      <dc:date>2011-04-18T09:04:12Z</dc:date>
    </item>
    <item>
      <title>Fortran 95 syntax is not compiling in MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837074#M6119</link>
      <description>Surely, you get a more explicit message than that.&lt;BR /&gt;Does it help if you specify the libraries in order?&lt;BR /&gt;I see that I am able to break the link advisor by attempting to get a suggested link line with all those options. Do you need them all together?</description>
      <pubDate>Mon, 18 Apr 2011 12:56:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837074#M6119</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-04-18T12:56:13Z</dc:date>
    </item>
    <item>
      <title>Fortran 95 syntax is not compiling in MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837075#M6120</link>
      <description>Error #6285 signifies that the code is attempting to call an overloaded MKL routine name with one or more arguments of the incorrect type. Some arguments may have been left out, or not in the proper sequence, or may not have the required keywords specified.&lt;BR /&gt;&lt;BR /&gt;This error occurs at the compilation stage, and has almost nothing to do with which linker options are used and which libraries are specified for inclusion in the link step.&lt;BR /&gt;&lt;BR /&gt;Please post the specific line(s) with the CALL, state or show the declarations of the arguments, and list the modules USEd in the subprogram with the CALL statement.&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:34:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837075#M6120</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-04-18T13:34:32Z</dc:date>
    </item>
    <item>
      <title>Fortran 95 syntax is not compiling in MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837076#M6121</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;According to &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;the list of libraries is to be as follows:&lt;BR /&gt;&lt;BR /&gt;mkl_blas95.lib mkl_scalapack_core.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib mkl_blacs_intelmpi.lib /Qopenmp&lt;BR /&gt;&lt;BR /&gt;and recommended compiler options&lt;BR /&gt;&lt;BR /&gt; /module:$(F95ROOT)/include/ia32&lt;BR /&gt;&lt;BR /&gt;Pleaseuse MKL Link Line Advisor for your settings</description>
      <pubDate>Mon, 18 Apr 2011 13:39:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837076#M6121</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-04-18T13:39:28Z</dc:date>
    </item>
    <item>
      <title>Fortran 95 syntax is not compiling in MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837077#M6122</link>
      <description>Thank you all for the replies.&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I was trying a small test program to solve a linear system, namely:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; program Testing&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; USE mkl95_LAPACK&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; implicit none&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; ! &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; double precision, dimension(2,2)::A,C,Y&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; double precision, dimension(2):: x,b&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; ! RiserSIM3D &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; print *, 'Hello World'&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Zeroing the vectors/matrices;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;x=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  &lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b=0.0;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Defining A;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(1,1) =-2;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(1,2) = 3;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(2,1) = 9;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;A(2,2) =-3;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Defining b;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b(1) = 8;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;b(2) =-15;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; !Solving A*x=b;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;call GESV(A,b); !(Fortran 95 syntax);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;endprogram Testing&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The above program is now correct and the solution of system is supposed to be -1,2.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;The problem before was that I declared the vector b using the following declaration:&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;double precision, dimension(2,1):: x,b&lt;SPAN style="white-space: pre;"&gt;	&lt;/SPAN&gt;!wrong declaration;&lt;/B&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The IVF compiler understood the above x and b as rank 2 arrays and did not compile the program because an array (rank 1) was expected as second input of GESV (from MKL's LAPACK) using the Fortran 95.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The some compilation problem did not occur using the Fortran 77 syntax.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It was a shameable mistake of mine.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Again, thank you everyone for the replies. I am realy sorry to take your time.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My best regards,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Marcio Yamamoto&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Apr 2011 07:21:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Fortran-95-syntax-is-not-compiling-in-MKL-10-3/m-p/837077#M6122</guid>
      <dc:creator>marcioy</dc:creator>
      <dc:date>2011-04-19T07:21:14Z</dc:date>
    </item>
  </channel>
</rss>

