<?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 Makefiles for Fortran95 interfaces to BLAS and LAPACK in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Makefiles-for-Fortran95-interfaces-to-BLAS-and-LAPACK/m-p/1170676#M28554</link>
    <description>&lt;P&gt;I had a problem with makefiles to generate module files (*.mod files) for the Fortran95 interfaces to BLAS and LAPACK provided in MKL for Linux. These makefiles are installed by default under&lt;/P&gt;

&lt;P&gt;/opt/intel/mkl/interfaces/blas95/makefile&lt;/P&gt;

&lt;P&gt;/opt/intel/mkl/interfaces/lapack95/makefile&lt;/P&gt;

&lt;P&gt;I wanted to generate the *.mod files with gfortran. By executing the&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/blas95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/lapack95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;did not generate lapack95.mod under&lt;/P&gt;

&lt;P&gt;/home/norio/opt/intel/mkl2018_interfaces_gfortran720/include/intel64/lp64/&lt;/P&gt;

&lt;P&gt;The variable mod95 does not seem to be assigned at all. Then, the target of&lt;BR /&gt;
	the following block in the makefiles above becomes a directory which is supposed contain&lt;BR /&gt;
	the *.mod files rather than the *.mod files them selves.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	$(mod_path)/$(mod95): $(inc_path)/$(iface_95)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir -p $(obj77_path)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir -p $(mod_path)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(FC) $(SPEC_OPT) $(FOPTS) $(opt_mod)$(mod_path) $(optsc) -o $(obj77_path)/mkl_lapack.$(sufobj) $&amp;lt;&lt;/P&gt;

&lt;P&gt;This directory is shared by the results of blas95 and lapack95 (and perhaps&lt;BR /&gt;
	other) makefiles. Hence the block above is executed only for the makefile&lt;BR /&gt;
	run first and not for the other makefile run later.&lt;/P&gt;

&lt;P&gt;To circumvent this situation, I did as following.&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/blas95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/lapack95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64 mod95=lapack.mod&lt;/P&gt;

&lt;P&gt;That is, I passed `mod95` variable as an argument to the lapack95 makefile.&lt;/P&gt;

&lt;P&gt;If I need to generate multiple *.mod files from a single makefile,&lt;BR /&gt;
	there may be a problem. (f95_precision.mod is generated both from&lt;BR /&gt;
	blas95 and lapack95, and I only need to generate it from either&lt;BR /&gt;
	one of them.) In that case, I can target a temporary directory and&lt;BR /&gt;
	manually copy the generated files.&lt;/P&gt;

&lt;P&gt;If this is a bug, I wish Intel could fix it. I had the same problem at least in one release of MKL2017 as well.&lt;/P&gt;

&lt;P&gt;Thank you for sharing MKL with the community.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 20:43:59 GMT</pubDate>
    <dc:creator>norio_t_</dc:creator>
    <dc:date>2017-12-08T20:43:59Z</dc:date>
    <item>
      <title>Makefiles for Fortran95 interfaces to BLAS and LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Makefiles-for-Fortran95-interfaces-to-BLAS-and-LAPACK/m-p/1170676#M28554</link>
      <description>&lt;P&gt;I had a problem with makefiles to generate module files (*.mod files) for the Fortran95 interfaces to BLAS and LAPACK provided in MKL for Linux. These makefiles are installed by default under&lt;/P&gt;

&lt;P&gt;/opt/intel/mkl/interfaces/blas95/makefile&lt;/P&gt;

&lt;P&gt;/opt/intel/mkl/interfaces/lapack95/makefile&lt;/P&gt;

&lt;P&gt;I wanted to generate the *.mod files with gfortran. By executing the&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/blas95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/lapack95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;did not generate lapack95.mod under&lt;/P&gt;

&lt;P&gt;/home/norio/opt/intel/mkl2018_interfaces_gfortran720/include/intel64/lp64/&lt;/P&gt;

&lt;P&gt;The variable mod95 does not seem to be assigned at all. Then, the target of&lt;BR /&gt;
	the following block in the makefiles above becomes a directory which is supposed contain&lt;BR /&gt;
	the *.mod files rather than the *.mod files them selves.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	$(mod_path)/$(mod95): $(inc_path)/$(iface_95)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir -p $(obj77_path)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir -p $(mod_path)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(FC) $(SPEC_OPT) $(FOPTS) $(opt_mod)$(mod_path) $(optsc) -o $(obj77_path)/mkl_lapack.$(sufobj) $&amp;lt;&lt;/P&gt;

&lt;P&gt;This directory is shared by the results of blas95 and lapack95 (and perhaps&lt;BR /&gt;
	other) makefiles. Hence the block above is executed only for the makefile&lt;BR /&gt;
	run first and not for the other makefile run later.&lt;/P&gt;

&lt;P&gt;To circumvent this situation, I did as following.&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/blas95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64&lt;/P&gt;

&lt;P&gt;norio@myhost:/opt/intel/mkl/interfaces/lapack95$ make libintel64 FC=gfortran INSTALL_DIR=/home/norio/opt/intel/mkl2018_interfaces_gfortran720 interface=lp64 mod95=lapack.mod&lt;/P&gt;

&lt;P&gt;That is, I passed `mod95` variable as an argument to the lapack95 makefile.&lt;/P&gt;

&lt;P&gt;If I need to generate multiple *.mod files from a single makefile,&lt;BR /&gt;
	there may be a problem. (f95_precision.mod is generated both from&lt;BR /&gt;
	blas95 and lapack95, and I only need to generate it from either&lt;BR /&gt;
	one of them.) In that case, I can target a temporary directory and&lt;BR /&gt;
	manually copy the generated files.&lt;/P&gt;

&lt;P&gt;If this is a bug, I wish Intel could fix it. I had the same problem at least in one release of MKL2017 as well.&lt;/P&gt;

&lt;P&gt;Thank you for sharing MKL with the community.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:43:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Makefiles-for-Fortran95-interfaces-to-BLAS-and-LAPACK/m-p/1170676#M28554</guid>
      <dc:creator>norio_t_</dc:creator>
      <dc:date>2017-12-08T20:43:59Z</dc:date>
    </item>
    <item>
      <title>Hi Norio, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Makefiles-for-Fortran95-interfaces-to-BLAS-and-LAPACK/m-p/1170677#M28555</link>
      <description>&lt;P&gt;Hi Norio,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you a lot for the report.&amp;nbsp; We will record it and fix it in future release.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If any new issue, please feel free to submit to&amp;nbsp;&lt;A h="ID=SERP,5114.1" href="https://supporttickets.intel.com/?lang=en-US" style="color: rgb(96, 0, 144); text-decoration-line: underline;" target="_blank"&gt;&lt;SPAN style="color: rgb(204, 0, 0);"&gt;&lt;SPAN data-bm="26"&gt;&lt;SPAN class="01"&gt;Online&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="01"&gt;Service&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="01"&gt;Center&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 02:48:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Makefiles-for-Fortran95-interfaces-to-BLAS-and-LAPACK/m-p/1170677#M28555</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-12-11T02:48:03Z</dc:date>
    </item>
  </channel>
</rss>

