Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Dariusz_K_
Beginner
388 Views

Unexpected EOF while reading module lapack95

Hello,

I am trying to run examples in $(MKLROOT)/examples directory (specifically examples_f95.tgz). I have problem with lapack.

As the user guide suggest if I want to use gfortran compiler I should build lapack and blas libraries located in $(MKLROOT)/interfaces. This is what I did:

1) In $(MKLROOT)/interfaces/blas95

sudo make libintel64 FC=gfrotran interface=lp64 INSTALL_DIR=/opt/intel/mkl/gfortran

2) In $(MKLROOT)/interfaces/lapack95

sudo make libintel64 FC=gfrotran interface=lp64 INSTALL_DIR=/opt/intel/mkl/gfortran

Everything compiled without errors. However, after this procedure only blas95.mod and f95_precision.mod were located in /opt/intel/mkl/gfortran/include/intel64/lp64. Examples from blas95 directory are working, but those from lapack95 don't beacuse there is no lapack95.mod file. Somewhere in this forum I found that .mod files can be included manually just by running:

sudo gfortran -J/opt/intel/mkl/include/intel64/lp64 -c lapack.f90 blas.f90 

from $(MKLROOT)/include directory. After this procedure .mod files were present, but compilation of lapack example produces error:

Fatal Error: Reading module lapack95 at line 2 column 1: Unexpected EOF

I don't have this problem with blas although I have the same options in make. 

0 Kudos
0 Replies
Reply