<?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 Dear customer, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096105#M23576</link>
    <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;You could refer to modify the makefile in ${MKLROOT}/interface/&amp;lt;lapack95|blas95&amp;gt; Here's the makefile for generating .mod &amp;amp; .a file with different compiler. In this makefile, it generate .o for each source f90, then generate .a lib according to those .o files;then generate .mod file from objects &amp;amp; lapack95.f90 in $MKLROOT/include. After generating the mod &amp;amp; a file, please compile your source file with the new .mod &amp;amp; .a file.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 05:58:48 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-02-16T05:58:48Z</dc:date>
    <item>
      <title>gfortran and mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096103#M23574</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I would like to link to mkl while compiling with gfortran-6.3. The makefile is this&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;SRC :=
FORTRAN  = gfortran
kernel=$(shell uname -r)
OPTS = -O3 -fno-range-check
MKLROOT=/opt/intel/compilers_and_libraries/linux/mkl
OPT= ${MKLROOT}/include/intel64/lp64 -I${MKLROOT}/include
MKL= ${MKLROOT}/lib/intel64/libmkl_blas95_lp64.a \
	     ${MKLROOT}/lib/intel64/libmkl_lapack95_lp64.a -Wl,--start-group \
	     ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a \
	     ${MKLROOT}/lib/intel64/libmkl_core.a \
	     ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group -lpthread -lm -ldl

ARCH     = ar
ARCHFLAGS= cr
RANLIB   = ranlib
LibName=Lib_Tools_$(FORTRAN)_$(kernel)_1.0.a

.SUFFIXES:
.SUFFIXES: .f90

include ../Moduls_MKL.mk

vpath %.f90 ../../src/

OBJS = $(subst .f90,.o,$(SRC))
%.o: %.f90
	$(FORTRAN) $(OPTS) -c $&amp;lt; -o $@ -I $(OPT)

all: $(OBJS) $(LibName)

$(LibName): $(OBJS)
	$(ARCH) $(ARCHFLAGS) $@ $?
	$(RANLIB) $@

clean:
	-rm *.smod
	-rm *.mod
	-rm $(LibName)&lt;/PRE&gt;

&lt;P&gt;Everything seems to work nicely as files containing&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;  include "mkl_vsl.f90"
Module ModMKLInterface
  use mkl_vsl
  use mkl_vsl_type
  include "mkl_vml.f90"
  include 'mkl_spblas.fi'
End Module ModMKLInterface&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;include "mkl_dss.f90"
Module Mod_Mkl_DSS_Solver
  use MKL_DSS
  Implicit none
  Type Mkl_DSS_Solver
    Private
    TYPE(MKL_DSS_HANDLE) :: handle&lt;/PRE&gt;

&lt;P&gt;are compiled without complaints. However, once the process get's to this:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Module ModMatrixOperations
  use lapack95
  use blas95
  use Data_Kind
  use mkl_servic&lt;/PRE&gt;

&lt;P&gt;I get the following error: "Fatal Error: Reading module ‘lapack95’ at line 1 column 2: Unexpected EOF."&lt;/P&gt;

&lt;P&gt;Anybody knows what the problem is??&lt;/P&gt;

&lt;P&gt;The mkl was installed a part of the parallel-studio-xe-2017-update1&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 02:52:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096103#M23574</guid>
      <dc:creator>may_ka</dc:creator>
      <dc:date>2017-02-15T02:52:56Z</dc:date>
    </item>
    <item>
      <title>Could help myself. Had just</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096104#M23575</link>
      <description>&lt;P&gt;Could help myself. Had just to run the makefiles for the interfaces with gfortran as compiler.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 03:46:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096104#M23575</guid>
      <dc:creator>may_ka</dc:creator>
      <dc:date>2017-02-15T03:46:39Z</dc:date>
    </item>
    <item>
      <title>Dear customer,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096105#M23576</link>
      <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;You could refer to modify the makefile in ${MKLROOT}/interface/&amp;lt;lapack95|blas95&amp;gt; Here's the makefile for generating .mod &amp;amp; .a file with different compiler. In this makefile, it generate .o for each source f90, then generate .a lib according to those .o files;then generate .mod file from objects &amp;amp; lapack95.f90 in $MKLROOT/include. After generating the mod &amp;amp; a file, please compile your source file with the new .mod &amp;amp; .a file.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 05:58:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/gfortran-and-mkl/m-p/1096105#M23576</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-02-16T05:58:48Z</dc:date>
    </item>
  </channel>
</rss>

