<?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 Compiling Fortran BLAS and LAPACK interfaces for using with gfo in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824875#M5061</link>
    <description>If your efforts produced a functional libmkl_blas95_ilp64.a, the corresponding .mod files were also produced. You could locate them using the &lt;I&gt;find&lt;/I&gt; command.&lt;BR /&gt;&lt;BR /&gt;Alternatively, it is quite easy to produce the module files without using a makefile.&lt;BR /&gt;&lt;BR /&gt;With gfortran 4.5:&lt;BR /&gt;&lt;BR /&gt;$ cp /opt/IFC11/mkl/include/blas.f90 . # copy interface definition files to working directory&lt;BR /&gt;$ cp /opt/IFC11/mkl/include/lapack.f90 .&lt;BR /&gt;$ gfortran -J. -c blas.f90 lapack.f90 # you can specify where to put the .mod files with the -J option.&lt;BR /&gt;$ ls *.mod&lt;BR /&gt;blas95.mod lapack95.mod mkl95_lapack.mod&lt;BR /&gt;f95_precision.mod mkl95_blas.mod mkl95_precision.mod&lt;BR /&gt;</description>
    <pubDate>Sat, 11 Sep 2010 19:20:03 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2010-09-11T19:20:03Z</dc:date>
    <item>
      <title>Compiling Fortran BLAS and LAPACK interfaces for using with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824874#M5060</link>
      <description>Hi. I hope that someone can offer some help with using the MKL BLAS and LAPACK interfaces with gfortran. When I code in a compiled language, it is always in C, and I have no Fortran experience at all. However, I have a need to link some Fortran code to MKL (someone else's code, someone else's makefile), and I am having trouble figuring out how create the gfortran-specific interface libraries for blas95.mod and lapack95.mod. For compatibility reasons, I need to use gfortran, and cannot depend on the Intel precompiled interface modules.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;(Note: I'm on a 2010-vintage Mac Pro with 2 6-core Xeon 5670 processors, running Snow Leopard 10.6.4).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Now, I see that on page 7-4 of the MKL Users Guide for MacOSX, there is a suggestion to run something like:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P class="p1"&gt;make libem64t FC=pgf95 INSTALL_DIR=&lt;I&gt;&lt;USER_PGF95_DIR&gt; &lt;/USER_PGF95_DIR&gt;&lt;/I&gt;interface=lp64&lt;/P&gt;&lt;P class="p1"&gt;That's simple enough, except that I need FC=gfortran. When I set that flag, I get the errors&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;f951: error: unrecognized command line option "-module"&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;f951: error: unrecognized command line option "-auto"&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;So what it looks like the makefile is doing is calling gfortran using ifort options. When I went into the makefile, it seems to support FC=ifort or FC=pgf95 (whatever that is), but there are no FC=gfortran options. I have played around with the makefile a bit (e.g., replacing -module with -J), and the make script ran, but all I got was a libmkl_blas95_ilp64.a file in the $INSTALL_DIR, and no .mod file. Now, maybe this is OK, and maybe it's not. I have no idea.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;I also checked the Intel Knowledgebase, and found an article with the following text:&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;META charset="utf-8" /&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;"Customer should use option /module:path (in Windows environment) or -module path (in Linux and Mac OS) when building the application with Intel Fortran Compiler ( ** ).&lt;BR style="font-family: arial, sans-serif; padding: 0px; margin: 0px;" /&gt;For gfrortran or pgf95, please, refer to the corresponding user guides of these compilers."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;... which obviously is of absolutely no help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;Is there anyone that might be able to help me out? Otherwise, I seem to have a MKL product that is incompatible with gfortran. And that makes me sad.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;Michael Braun&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 11.6667px; color: #333333; line-height: 19px;"&gt;braunm@mit.edu&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Sep 2010 18:39:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824874#M5060</guid>
      <dc:creator>Michael_B_19</dc:creator>
      <dc:date>2010-09-11T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Compiling Fortran BLAS and LAPACK interfaces for using with gfo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824875#M5061</link>
      <description>If your efforts produced a functional libmkl_blas95_ilp64.a, the corresponding .mod files were also produced. You could locate them using the &lt;I&gt;find&lt;/I&gt; command.&lt;BR /&gt;&lt;BR /&gt;Alternatively, it is quite easy to produce the module files without using a makefile.&lt;BR /&gt;&lt;BR /&gt;With gfortran 4.5:&lt;BR /&gt;&lt;BR /&gt;$ cp /opt/IFC11/mkl/include/blas.f90 . # copy interface definition files to working directory&lt;BR /&gt;$ cp /opt/IFC11/mkl/include/lapack.f90 .&lt;BR /&gt;$ gfortran -J. -c blas.f90 lapack.f90 # you can specify where to put the .mod files with the -J option.&lt;BR /&gt;$ ls *.mod&lt;BR /&gt;blas95.mod lapack95.mod mkl95_lapack.mod&lt;BR /&gt;f95_precision.mod mkl95_blas.mod mkl95_precision.mod&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Sep 2010 19:20:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824875#M5061</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-09-11T19:20:03Z</dc:date>
    </item>
    <item>
      <title>Compiling Fortran BLAS and LAPACK interfaces for using with gfo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824876#M5062</link>
      <description>Thank you, this was very helpful. I still needed to rewrite the Makefile, but from your example I learned something new about how Fortran compilers work, and it put me on the right track. Much appreciated.</description>
      <pubDate>Mon, 13 Sep 2010 22:01:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-Fortran-BLAS-and-LAPACK-interfaces-for-using-with/m-p/824876#M5062</guid>
      <dc:creator>Michael_B_19</dc:creator>
      <dc:date>2010-09-13T22:01:33Z</dc:date>
    </item>
  </channel>
</rss>

